Permalink
Browse files

Allow for the use of multiple namespaces.

  • Loading branch information...
1 parent 9fcdd6c commit e205bba344cbd76f7c0d9c4e15a78d032e6ca272 @sprsquish sprsquish committed Apr 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 jquery.hotkeys.js
View
@@ -40,6 +40,7 @@
//will also allow removing listeners of a specific key combination
//and support data objects
keys = (handleObj.namespace || "").toLowerCase().split(" ");
+ keys = jQuery.map(keys, function(key) { return key.split("."); });
//no need to modify handler if no keys specified
if (keys.length === 1 && keys[0] === "") {

0 comments on commit e205bba

Please sign in to comment.