mercredi 25 février 2015

How do I Remap Caps-Lock+HKJL to Mouse Scroll using Karabiner + Seil?


I've remapped caps-lock to F19 in Seil.


In Karabiner, I've remaped F19 to 'HYPER'.



<item>
<name>CAPS to HYPER</name>
<appendix>Caps to Hyper</appendix>
<identifier>private.caps_to_hyper</identifier>
<autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::OPTION_R | ModifierFlag::SHIFT_R | ModifierFlag::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::OPTION_R | ModifierFlag::SHIFT_R | ModifierFlag::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::OPTION_R | ModifierFlag::SHIFT_R | ModifierFlag::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::OPTION_R | ModifierFlag::SHIFT_R | ModifierFlag::COMMAND_R</autogen>
</item>


Now, I'm trying to get HYPER remapped to be mouse scroll when used with HJKL



<item>
<name>Scroll</name>
<identifier>private.scroll_keys</identifier>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::H, KeyCode::VK_MOUSEKEY_SCROLL_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::J, KeyCode::VK_MOUSEKEY_SCROLL_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::K, KeyCode::VK_MOUSEKEY_SCROLL_UP</autogen>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::L, KeyCode::VK_MOUSEKEY_SCROLL_RIGHT</autogen>
</item>


Any ideas what I'm doing wrong?


(For reference, I also have the following in my private.xml file for moving making Control-HJKL arrow keys)



<item>
<name>HJKL Cursors</name>
<appendix>This uses HJKL to browse System Wide (Left/Down/Up/Right)</appendix>
<identifier>private.change_browse_to_hjkl</identifier>
<autogen>__KeyToKey__ KeyCode::H, ModifierFlag::CONTROL_L, KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::J, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::K, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP</autogen>
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::CONTROL_L, KeyCode::CURSOR_RIGHT</autogen>
</item>




Aucun commentaire:

Enregistrer un commentaire