Created
June 19, 2015 04:12
-
-
Save kminiatures/1c6ec2bf9072a2bf8512 to your computer and use it in GitHub Desktop.
Karabiner hjkl Setting for Phots.app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hjkl +
1 => Open Photos Tab.
x => Delete with Confirmation.
r => Rotate to Right.