Skip to content

Instantly share code, notes, and snippets.

@kminiatures
Created June 19, 2015 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kminiatures/1c6ec2bf9072a2bf8512 to your computer and use it in GitHub Desktop.
Save kminiatures/1c6ec2bf9072a2bf8512 to your computer and use it in GitHub Desktop.
Karabiner hjkl Setting for Phots.app
<?xml version="1.0"?>
<root>
<!-- define Photos -->
<appdef>
<appname>PHOTOS</appname>
<equal>com.apple.Photos</equal>
</appdef>
<item>
<name>Use "hjkl" keys as arrow keys if you are not editing text for Photos.</name>
<item>
<name>Enable in some standard apps.</name>
<appendix>Supported Applications:</appendix>
<appendix>- Photos.app.</appendix>
<identifier>remap.hjkl_arrow_for_photos</identifier>
{{ HJKL_ARROW_EXTRA }}
<block>
<only> PHOTOS </only>
<uielementrole_not>AXTextField, AXTextArea</uielementrole_not>
<modifier_only>
ModifierFlag::NONE,
ModifierFlag::SHIFT_L | ModifierFlag::NONE,
ModifierFlag::SHIFT_R | ModifierFlag::NONE,
</modifier_only>
<autogen>__KeyToKey__ KeyCode::H, KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::K, KeyCode::CURSOR_UP</autogen>
<autogen>__KeyToKey__ KeyCode::L, KeyCode::CURSOR_RIGHT</autogen>
<autogen>__KeyToKey__ KeyCode::KEY_1, KeyCode::KEY_1, ModifierFlag::COMMAND_L </autogen>
<autogen>__KeyToKey__ KeyCode::X, KeyCode::DELETE </autogen>
<autogen>__KeyToKey__ KeyCode::R, KeyCode::R, ModifierFlag::COMMAND_L </autogen>
</block>
</item>
</item>
</root>
@kminiatures
Copy link
Author

hjkl +
1 => Open Photos Tab.
x => Delete with Confirmation.
r => Rotate to Right.

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