Merge pull request #219 from shelane/patch-1

prevents left and right keydown in input fields
This commit is contained in:
Mathieu Cornic 2018-12-22 17:10:51 +01:00 committed by GitHub
commit 59b4f36e9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,6 +223,13 @@ jQuery(document).ready(function() {
});
});
jQuery('input').keydown(function (e) {
// left and right arrow keys
if (e.which == '37' || e.which == '39') {
e.stopPropagation();
}
});
jQuery(document).keydown(function(e) {
// prev links - left arrow key
if(e.which == '37') {