From 8dd5250944caf0290356b2b5f6cd810fa53d37d6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 5 May 2025 10:12:37 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14730 --- app/src/boot/globalEvent/keydown.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.ts index 433db09a3..d60ee9218 100644 --- a/app/src/boot/globalEvent/keydown.ts +++ b/app/src/boot/globalEvent/keydown.ts @@ -1436,7 +1436,8 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => { } // 闪卡长按 Esc 光标定位到闪卡按钮上 https://github.com/siyuan-note/siyuan/issues/12989 - if (document.activeElement && hasClosestByClassName(document.activeElement, "card__action")) { + // https://github.com/siyuan-note/siyuan/issues/14730 + if (event.repeat && document.activeElement && hasClosestByClassName(document.activeElement, "card__action")) { return; } @@ -1736,7 +1737,7 @@ export const sendGlobalShortcut = (app: App) => { }; -export const sendUnregisterGlobalShortcut = (app:App) => { +export const sendUnregisterGlobalShortcut = (app: App) => { /// #if !BROWSER ipcRenderer.send(Constants.SIYUAN_CMD, { cmd: "unregisterGlobalShortcut",