From 28a5712513aee7c6ca1454868fa7835686430fc6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 27 Apr 2024 16:00:03 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11168 --- app/src/protyle/util/hotKey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/hotKey.ts b/app/src/protyle/util/hotKey.ts index 692cdaf6f..8e020ee67 100644 --- a/app/src/protyle/util/hotKey.ts +++ b/app/src/protyle/util/hotKey.ts @@ -113,7 +113,7 @@ export const matchHotKey = (hotKey: string, event: KeyboardEvent) => { } const isMatchKey = keyCode === Constants.KEYCODELIST[event.keyCode]; // 是否匹配 ⌥[] / ⌥⌘[] - if (isMatchKey && event.altKey && !event.shiftKey && + if (isMatchKey && event.altKey && !event.shiftKey && hotKeys.length < 4 && (hotKeys.length === 3 ? (isOnlyMeta(event) && hotKey.startsWith("⌥⌘")) : isNotCtrl(event))) { return true; }