Skip to content

Instantly share code, notes, and snippets.

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