Fix arrow keys, so it can be used in forms
This commit is contained in:
parent
948be6a10b
commit
0b6c4c8095
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ $(function () {
|
|||
});
|
||||
|
||||
$(document).on('keydown', function(e) {
|
||||
// Only replace the arrow key functionif there are not needed
|
||||
if ($('form input, form textarea').filter(':focus').length > 0)
|
||||
return;
|
||||
|
||||
switch (e.keyCode) {
|
||||
case 76: // l
|
||||
case 39: // -->
|
||||
|
|
Loading…
Reference in a new issue