From e3e24e76d48d0a11f5bea614b881da6f077eed10 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Fri, 23 Aug 2024 00:43:17 -0300 Subject: [PATCH] [Bug]: Repeated keyboard shortcuts ignored Fixes #292 --- js/lib/input.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/lib/input.js b/js/lib/input.js index d5f48cf..1585f12 100644 --- a/js/lib/input.js +++ b/js/lib/input.js @@ -660,6 +660,9 @@ window.onkeyup = (evn) => { }); } + if (keyboard.keys[evn.code]._hold_to) + clearTimeout(keyboard.keys[evn.code]._hold_to); + keyboard.keys[evn.code] = { pressed: false, held: false,