mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Only change the current number input by arrow keys (fixes #1232)
This commit is contained in:
parent
1459f8c441
commit
c65f375a68
@ -84,11 +84,11 @@ $(".numberpicker").on("keydown", function(e)
|
|||||||
if (e.key == "ArrowUp")
|
if (e.key == "ArrowUp")
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(".numberpicker-up-button").click();
|
$(this).parent().find(".numberpicker-up-button").click();
|
||||||
}
|
}
|
||||||
else if (e.key == "ArrowDown")
|
else if (e.key == "ArrowDown")
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(".numberpicker-down-button").click();
|
$(this).parent().find(".numberpicker-down-button").click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user