Skip to content

Instantly share code, notes, and snippets.

@dnewcome
Last active August 29, 2015 14:01
Show Gist options
  • Save dnewcome/828afe64d1204c5e3b03 to your computer and use it in GitHub Desktop.
Save dnewcome/828afe64d1204c5e3b03 to your computer and use it in GitHub Desktop.
KeyRemap4Mac config for hjkl navigation
<?xml version="1.0"?>
<root>
<item>
<name>PC Application Key to Extra1 Modifier</name>
<identifier>private.pc_application_to_extra1</identifier>
<autogen>--KeyToKey-- KeyCode::PC_APPLICATION, KeyCode::VK_MODIFIER_EXTRA1</autogen>
</item>
<item>
<name>Extra1+J to CURSOR_DOWN</name>
<identifier>private.extra1_j_to_cursor_down</identifier>
<autogen>--KeyToKey-- KeyCode::J, ModifierFlag::EXTRA1, KeyCode::CURSOR_DOWN</autogen>
</item>
<item>
<name>Extra1+K to CURSOR_UP</name>
<identifier>private.extra1_k_to_cursor_up</identifier>
<autogen>--KeyToKey-- KeyCode::K, ModifierFlag::EXTRA1, KeyCode::CURSOR_UP</autogen>
</item>
<item>
<name>Extra1+H to CURSOR_LEFT</name>
<identifier>private.extra1_H_to_cursor_left</identifier>
<autogen>--KeyToKey-- KeyCode::H, ModifierFlag::EXTRA1, KeyCode::CURSOR_LEFT</autogen>
</item>
<item>
<name>Extra1+L to CURSOR_RIGHT</name>
<identifier>private.extra1_l_to_cursor_right</identifier>
<autogen>--KeyToKey-- KeyCode::L, ModifierFlag::EXTRA1, KeyCode::CURSOR_RIGHT</autogen>
</item>
</root>
@dnewcome
Copy link
Author

dnewcome commented May 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment