3

I'm currently remapping some of the keys on my MacBook using KeyRemap4Macbook - in that process I need to remap the keys using this xml-file, namely private.xml, that is referenced here:http://pqrs.org/macosx/keyremap4macbook/xml.html.en

This is an example of how private.xml looks like:

<?xml version="1.0"?>
<root>
  <item>
    <name>Swap Space and Tab</name>
    <identifier>private.swap_space_and_tab</identifier>
    <autogen>--KeyToKey-- KeyCode::SPACE, KeyCode::TAB</autogen>
    <autogen>--KeyToKey-- KeyCode::TAB, KeyCode::SPACE</autogen>
  </item>
</root>

Does anyone know where I find a chart of the keycodes referenced in the XML, the capitalized words (SPACE, TAB)?

2

Based on this answer, key codes which you are looking for are:

kVK_Tab = 0x30, kVK_Space = 0x31,

See lines 269, 270.

Also there is an application which can show you key codes in a more friendly way.

0

Clicking on the "basic"-tab on the linked webpage, shows a link (List of KeyCode) to a KeyCode.data-file on their GitHub repository.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .