mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 16:54:49 +08:00
Merge pull request #241 from taiidani/patch-1
Preventing left/right arrow key navigation in textareas
This commit is contained in:
commit
d6cce1c3ff
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user