Don't scroll by keyevent while form element has focus
This commit is contained in:
parent
04391d4dec
commit
bc6ef6480a
@ -327,7 +327,7 @@
|
|||||||
|
|
||||||
var shouldPrevent = false;
|
var shouldPrevent = false;
|
||||||
$(document).bind('keydown' + eventClassName, function (e) {
|
$(document).bind('keydown' + eventClassName, function (e) {
|
||||||
if (!hovered) {
|
if (!hovered || $(document.activeElement).is(":input,[contenteditable]")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user