Keydown now checks if the event was preventDefault()'ed.

This commit is contained in:
Martijn Saly 2014-07-15 16:41:01 +02:00 committed by Hyunje Alex Jun
parent eb13d331d9
commit 4e90f8c170

View File

@ -400,6 +400,10 @@
var shouldPrevent = false;
$(document).bind('keydown' + eventClassName, function (e) {
if (e.isDefaultPrevented && e.isDefaultPrevented()) {
return;
}
if (!hovered || $(document.activeElement).is(":input,[contenteditable]")) {
return;
}