Merge branch 'main' into feat/enforce-eslint
All checks were successful
Run Tests / test (pull_request) Successful in 2m3s

This commit is contained in:
thepaperpilot 2024-03-04 01:26:29 +00:00
commit df9ba59a1a

View file

@ -108,7 +108,7 @@ document.onkeydown = function (e) {
if (e.ctrlKey) { if (e.ctrlKey) {
key = "ctrl+" + key; key = "ctrl+" + key;
} }
const hotkey = hotkeys[key]; const hotkey = hotkeys[key] ?? hotkeys[key.toLowerCase()];
if (hotkey && unref(hotkey.enabled)) { if (hotkey && unref(hotkey.enabled)) {
e.preventDefault(); e.preventDefault();
hotkey.onPress(); hotkey.onPress();