Allow both cases in shift+hotkeys
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m0s
Run Tests / test (push) Successful in 2m4s

This commit is contained in:
escapee 2024-02-21 11:13:17 -08:00
parent a39e65852d
commit b204e3cc42

View file

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