1
Background information:
I would like to use h, j, k, l navigation in the Preview.app.
A few months ago I found a solution here: https://apple.stackexchange.com/a/188301/127306. Thanks to the Karabiner app and Martijn's Courteaux private.xml file I was able to use hjkl in Preview.
All of the sudden it stopped working. Probably due to either an update of Karabiner or Preview.
Question:
Have you got any idea how to make this .xml
file work? Or maybe you know some other workarounds? (I don't want to use shortcuts like command+j however.)
The code below is the private.xml
file I use.
<?xml version="1.0"?>
<root>
<appdef>
<appname>PREVIEW</appname>
<equal>com.apple.preview</equal>
</appdef>
<item>
<name>Vi Navigation in Preview</name>
<identifier>private.preview.vinav</identifier>
<only>PREVIEW</only>
<uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
<modifier_only>
ModifierFlag::NONE,
ModifierFlag::SHIFT_L | ModifierFlag::NONE,
ModifierFlag::SHIFT_R | ModifierFlag::NONE,
</modifier_only>
<appendix>Navigate using the HJKL keys</appendix>
<autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
<autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
</item>
</root>
Notes:
- The Karabiner version is 10.9.0.
- I'm using OS X El Capitan however I had this issue on OS X Yosemite as well.