From e5c08dee7b7541d7d17dfdd2d906c9fa2b271180 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 25 Nov 2023 09:20:21 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9735 --- app/src/protyle/util/hotKey.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/util/hotKey.ts b/app/src/protyle/util/hotKey.ts index 86cc5166d..e51a3cb39 100644 --- a/app/src/protyle/util/hotKey.ts +++ b/app/src/protyle/util/hotKey.ts @@ -102,6 +102,9 @@ export const matchHotKey = (hotKey: string, event: KeyboardEvent) => { // 是否匹配 ⌃[] / ⌃⌘[] / ⌃⌥[] / ⌃⇧[]/ ⌃⌥⇧[] if (hotKey.startsWith("⌃")) { + if (!isMac()) { + return false; + } let keyCode = hotKeys.length === 3 ? hotKeys[2] : hotKeys[1]; if (hotKeys.length === 4) { keyCode = hotKeys[3];