Merge pull request #241 from taiidani/patch-1

Preventing left/right arrow key navigation in textareas
This commit is contained in:
Matthew Taylor 2019-02-17 19:45:30 +00:00 committed by GitHub
commit d6cce1c3ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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