Skip to content

Instantly share code, notes, and snippets.

@getflourish
Last active June 10, 2016 12:38
Show Gist options
  • Save getflourish/5e891f89152edf0234e323afdbd56e1f to your computer and use it in GitHub Desktop.
Save getflourish/5e891f89152edf0234e323afdbd56e1f to your computer and use it in GitHub Desktop.
Keymaster setup
/**
** Keymaster understands the following modifiers: ⇧, shift, option, ⌥, alt, ctrl, control, command, and ⌘.
** The following special keys can be used for shortcuts: backspace, tab, clear, enter, return, esc, escape, space,
** up, down, left, right, home, end, pageup, pagedown, del, delete and f1 through f19.
**
*/
key('a', function(){ alert('you pressed a!') });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment