Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2014 17:44
Show Gist options
  • Save anonymous/ac5020224f49f446e2ba to your computer and use it in GitHub Desktop.
Save anonymous/ac5020224f49f446e2ba to your computer and use it in GitHub Desktop.
Use HJKL to control page scrolling
<?xml version="1.0"?>
<root>
<appdef>
<appname>Skim</appname>
<equal>net.sourceforge.skim-app.skim</equal>
</appdef>
<item>
<name>Use HJKL to control page scrolling</name>
<identifier>private.hjkl_in_skim</identifier>
<uielementrole_only>AXTextArea</uielementrole_only>
<only>Skim</only>
<autogen>
__KeyToKey__ KeyCode::J,
KeyCode::CURSOR_DOWN, KeyCode::CURSOR_DOWN
</autogen>
<autogen>
__KeyToKey__ KeyCode::K,
KeyCode::CURSOR_UP, KeyCode::CURSOR_UP
</autogen>
<autogen>
__KeyToKey__ KeyCode::H,
KeyCode::PAGEUP, KeyCode::PAGEUP
</autogen>
<autogen>
__KeyToKey__ KeyCode::L,
KeyCode::PAGEDOWN, KeyCode::PAGEDOWN
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment