From 5607def130c32a9be466532e469aff933fc7b863 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 8 Dec 2023 12:10:39 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/9841 --- app/src/protyle/util/hotKey.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/util/hotKey.ts b/app/src/protyle/util/hotKey.ts index dd8d8b774..e4bccf090 100644 --- a/app/src/protyle/util/hotKey.ts +++ b/app/src/protyle/util/hotKey.ts @@ -49,6 +49,10 @@ export const matchHotKey = (hotKey: string, event: KeyboardEvent) => { // https://github.com/siyuan-note/siyuan/issues/9770 if (hotKey.startsWith("⌃") && !isMac()) { + if (hotKey === "⌃D") { + // https://github.com/siyuan-note/siyuan/issues/9841 + return false; + } hotKey = hotKey.replace("⌘", "").replace("⌃", "⌘") .replace("⌘⇧", "⇧⌘") .replace("⌘⌥⇧", "⌥⇧⌘")