Only change the current number input by arrow keys (fixes #1232)

This commit is contained in:
Bernd Bestel 2020-12-31 13:48:36 +01:00
parent 1459f8c441
commit c65f375a68
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -84,11 +84,11 @@ $(".numberpicker").on("keydown", function(e)
if (e.key == "ArrowUp")
{
e.preventDefault();
$(".numberpicker-up-button").click();
$(this).parent().find(".numberpicker-up-button").click();
}
else if (e.key == "ArrowDown")
{
e.preventDefault();
$(".numberpicker-down-button").click();
$(this).parent().find(".numberpicker-down-button").click();
}
});