From 8d34d0aa9b24f3f1ffdaa05375fe532810f233e6 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 27 Nov 2025 11:48:35 -0800 Subject: [PATCH] Add missing const declarations. --- voussoirkitjs/hotkeys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voussoirkitjs/hotkeys.js b/voussoirkitjs/hotkeys.js index 3882cdf..7aa75cd 100644 --- a/voussoirkitjs/hotkeys.js +++ b/voussoirkitjs/hotkeys.js @@ -38,7 +38,7 @@ function register_hotkey(hotkey, action, description) } const key = hotkey.pop(); - modifiers = hotkey.map(word => word.toLocaleLowerCase()); + const modifiers = hotkey.map(word => word.toLocaleLowerCase()); const ctrlKey = modifiers.includes("control") || modifiers.includes("ctrl"); const shiftKey = modifiers.includes("shift"); const altKey = modifiers.includes("alt"); @@ -96,7 +96,7 @@ function hotkeys_listener(event) return; } - identifier = hotkeys.hotkey_identifier(event.key, event.ctrlKey, event.shiftKey, event.altKey); + const identifier = hotkeys.hotkey_identifier(event.key, event.ctrlKey, event.shiftKey, event.altKey); //console.log(identifier); if (identifier in hotkeys.HOTKEYS) {