Preventing left/right arrow key navigation in textareas

This commit is contained in:
Ryan Nixon 2019-02-15 10:11:16 -08:00 committed by GitHub
parent 7f5e927f0c
commit ef2ab7ad8a
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();