Skip to content

Commit

Permalink
add support for keyboard 0 selecting pin number 10 (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra authored Nov 3, 2023
1 parent b3ad219 commit 147364a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ Menu.prototype.documentKeydown = function (e) {
e.stopPropagation();
if (e.keyCode === 80) {
this.togglePinEntry();
} else if (e.keyCode > 48 && e.keyCode < 58) {
this.selectPin(e.keyCode - 49);
} else if (e.keyCode >= 48 && e.keyCode < 58) {
this.selectPin((e.keyCode - 9) % 10);
}
};

Expand Down

0 comments on commit 147364a

Please sign in to comment.