Fix arrow keys, so it can be used in forms

This commit is contained in:
Aaron Fischer 2017-05-17 21:49:12 +02:00
parent 948be6a10b
commit 0b6c4c8095

View file

@ -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: // -->