Keydown now checks if the event was preventDefault()'ed.
This commit is contained in:
parent
eb13d331d9
commit
4e90f8c170
@ -400,6 +400,10 @@
|
|||||||
|
|
||||||
var shouldPrevent = false;
|
var shouldPrevent = false;
|
||||||
$(document).bind('keydown' + eventClassName, function (e) {
|
$(document).bind('keydown' + eventClassName, function (e) {
|
||||||
|
if (e.isDefaultPrevented && e.isDefaultPrevented()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!hovered || $(document.activeElement).is(":input,[contenteditable]")) {
|
if (!hovered || $(document.activeElement).is(":input,[contenteditable]")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user