Skip to content

Commit 2eed592

Browse files
committed
Merge pull request #25 from sprsquish/patch-1
Allow for the use of multiple namespaces.
2 parents 9fcdd6c + e205bba commit 2eed592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jquery.hotkeys.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
//will also allow removing listeners of a specific key combination
4141
//and support data objects
4242
keys = (handleObj.namespace || "").toLowerCase().split(" ");
43+
keys = jQuery.map(keys, function(key) { return key.split("."); });
4344

4445
//no need to modify handler if no keys specified
4546
if (keys.length === 1 && keys[0] === "") {

0 commit comments

Comments
 (0)