Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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)?

share|improve this question
add comment

2 Answers

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.