mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
Merge pull request #219 from shelane/patch-1
prevents left and right keydown in input fields
This commit is contained in:
commit
59b4f36e9f
1 changed files with 7 additions and 0 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue