Ho rimappato Caps Lock in F19 in Seil.
In Karabiner, ho rimappato F19 in 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>
Ora, sto cercando di ottenere Hyper rimappato come scroll del mouse quando usato con H J K L .
<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>
Qualche idea su cosa sto facendo male?
(Per riferimento, ho anche il seguente nel mio file private.xml
per fare Control - H J K L tasti freccia)
<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>