forked from profectus/Profectus
pull current changes #1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue