Don't scroll by keyevent while form element has focus

This commit is contained in:
Rupert Angermeier 2014-02-10 16:46:15 +01:00 committed by Hyunje Alex Jun
parent 04391d4dec
commit bc6ef6480a

View File

@ -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;
} }