Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14730

Vanessa8dd5250944ca
diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.ts
index 433db09a35..d60ee92181 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",