Skip to content

Commit 782ddf3

Browse files
author
Tzury Bar Yochay
committed
Merge pull request #32 from madpin/master
Now work with jQueryUI 1.9.0
2 parents 9c20b92 + b568669 commit 782ddf3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jquery.hotkeys.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@
4343
keys = jQuery.map(keys, function(key) { return key.split("."); });
4444

4545
//no need to modify handler if no keys specified
46-
if (keys.length === 1 && (keys[0] === "" || keys[0] === "autocomplete")) {
46+
//Added keys[0].substring(0, 12) to work with jQuery ui 1.9.0
47+
//Added accordion, tabs and menu, then jquery ui can use keys.
48+
49+
if (keys.length === 1 && (keys[0] === "" ||
50+
keys[0].substring(0, 12) === "autocomplete" ||
51+
keys[0].substring(0, 9) === "accordion" ||
52+
keys[0].substring(0, 4) === "tabs" ||
53+
keys[0].substring(0, 4) === "menu")) {
4754
return;
4855
}
4956

0 commit comments

Comments
 (0)