diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index 2a01e5d..e1311d5 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -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; }