Skip to content

Instantly share code, notes, and snippets.

@mooz
Created August 3, 2009 01:28
Show Gist options
  • Save mooz/160290 to your computer and use it in GitHub Desktop.
Save mooz/160290 to your computer and use it in GitHub Desktop.
key.isControlKey = function (aEvent) {
return aEvent.ctrlKey;
};
key.isMetaKey = function (aEvent) {
return aEvent.altKey || aEvent.commandKey;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment