Permalink
Browse files

Added getActiveKeys to the API.

  • Loading branch information...
1 parent bddff7b commit c9234be1118d13411339e5c02e3d8d076e7debb3 @RobertWHurst committed Nov 1, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 keyboard.js
View
@@ -233,6 +233,7 @@
throw new Error('Cannot bind to keydown event. Both addEventListener and attachEvent are unsupported by your browser.');
}
+ KeyboardJS.getActiveKeys = getActiveKeys;
KeyboardJS.on = createBinding;
KeyboardJS.clear = removeBindingByKeyCombo;
KeyboardJS.clear.key = removeBindingByKeyName;
@@ -242,8 +243,8 @@
KeyboardJS.macro.remove = removeMacro;
KeyboardJS.getKey = getKeyName;
KeyboardJS.combo = {};
- KeyboardJS.parse = parseKeyCombo;
- KeyboardJS.stringify = stringifyKeyCombo;
+ KeyboardJS.combo.parse = parseKeyCombo;
+ KeyboardJS.combo.stringify = stringifyKeyCombo;
window.map = map;
window.macros = macros;

0 comments on commit c9234be

Please sign in to comment.