Skip to content

Instantly share code, notes, and snippets.

@othercat
Created October 31, 2012 03:45
Show Gist options
  • Save othercat/3984676 to your computer and use it in GitHub Desktop.
Save othercat/3984676 to your computer and use it in GitHub Desktop.
Using KeyRemap4Macbook to remap J,K,G,Shift+G in Preview.app
<?xml version="1.0"?>
<root>
<item>
<name>Enable at only Preview</name>
<item>
<name>Use J and K to Up and Down</name>
<identifier>remap.app_preview_jk2UpDown</identifier>
<only>PREVIEW</only>
<autogen>--KeyToKey-- KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
<autogen>--KeyToKey-- KeyCode::K, KeyCode::CURSOR_UP</autogen>
</item>
<item>
<name>Use G and Shift+G to Home and END</name>
<identifier>remap.app_preview_gshiftg2HomeEnd</identifier>
<only>PREVIEW</only>
<autogen>--KeyToKey-- KeyCode::G, VK_SHIFT, KeyCode::CURSOR_RIGHT, ModifierFlag::FN</autogen>
<autogen>--KeyToKey-- KeyCode::G, KeyCode::CURSOR_LEFT, ModifierFlag::FN</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment