mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 20:12:03 +08:00
Merge pull request #219 from shelane/patch-1
prevents left and right keydown in input fields
This commit is contained in:
commit
59b4f36e9f
@ -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) {
|
jQuery(document).keydown(function(e) {
|
||||||
// prev links - left arrow key
|
// prev links - left arrow key
|
||||||
if(e.which == '37') {
|
if(e.which == '37') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user