diff --git a/js/menu.js b/js/menu.js index c739e499..e1eb0e84 100644 --- a/js/menu.js +++ b/js/menu.js @@ -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); } };