Skip to content

Instantly share code, notes, and snippets.

@jerray
Created August 26, 2012 07:35
Show Gist options
  • Save jerray/3475736 to your computer and use it in GitHub Desktop.
Save jerray/3475736 to your computer and use it in GitHub Desktop.
KeyRemap4MacBook的自定义键位映射
<?xml version="1.0"?>
<root>
<item>
<name>7lemon custom settings</name>
<!--
互换option键和command键(虚拟机和远程桌面除外)
外接键盘用。可配合"General"中的"Don't remap Apple's keyboards"使用
-->
<item>
<name>Swap Option_L and Command_L</name>
<appendix>(except virtual machine, RDC)</appendix>
<identifier>private.swap_OPTION_L_COMMAND_L</identifier>
<not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
<autogen>--KeyToKey-- KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
</item>
<item>
<name>Swap Option_R and Command_R</name>
<appendix>(except virtual machine, RDC)</appendix>
<identifier>private.swap_OPTION_R_COMMAND_R</identifier>
<not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
<autogen>--KeyToKey-- KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment