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",