forked from profectus/Profectus
Allow both cases in shift+hotkeys
All checks were successful
Run Tests / test (pull_request) Successful in 1m59s
All checks were successful
Run Tests / test (pull_request) Successful in 1m59s
This commit is contained in:
parent
1f22f506dd
commit
b40d4bef32
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue