From d3e8bcc645a16fbbcf2893d2b077c1e104f30a0a Mon Sep 17 00:00:00 2001 From: 0neGal Date: Thu, 20 Jun 2024 00:00:21 +0200 Subject: allow navigating around on a keyboard with HJKL --- src/app/js/gamepad.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/js/gamepad.js b/src/app/js/gamepad.js index 789b27f..134a486 100644 --- a/src/app/js/gamepad.js +++ b/src/app/js/gamepad.js @@ -296,10 +296,10 @@ window.addEventListener("keydown", (e) => { case "Enter": return select(); // move selection - case "ArrowUp": return navigate.move("up") - case "ArrowDown": return navigate.move("down") - case "ArrowLeft": return navigate.move("left") - case "ArrowRight": return navigate.move("right") + case "KeyK": case "ArrowUp": return navigate.move("up") + case "KeyJ": case "ArrowDown": return navigate.move("down") + case "KeyH": case "ArrowLeft": return navigate.move("left") + case "KeyL": case "ArrowRight": return navigate.move("right") } }) -- cgit v1.2.3