Skip to content

Instantly share code, notes, and snippets.

@smithjw
Last active December 21, 2015 13:49
Show Gist options
  • Save smithjw/6315273 to your computer and use it in GitHub Desktop.
Save smithjw/6315273 to your computer and use it in GitHub Desktop.
Example of how to map a double-tap of a modifier (⇧ / ^ / ⌥ / ⌘) to another keyboard shortcut. In this example ⇧^⌥⌘0
<item>
<name>Double Control</name>
<appendix>Doubletap ^ to ⇧^⌥⌘0</appendix>
<identifier>private.smithjw.DoubleControl</identifier>
<autogen>
--DoublePressModifier--
KeyCode::CONTROL_L,
KeyCode::CONTROL_L,
KeyCode::KEY_0, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L | ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L
</autogen>
</item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment