Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/5896

Vanessa2e68c770a536
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index 0bf2e35fbd..c7e59d01c4 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -563,7 +563,7 @@ export const globalShortcut = () => {
}
// close tab
- if (matchHotKey(window.siyuan.config.keymap.general.closeTab.custom, event)) {
+ if (matchHotKey(window.siyuan.config.keymap.general.closeTab.custom, event) && !event.repeat) {
event.preventDefault();
event.stopPropagation();
let activeTabElement = document.querySelector(".block__icons--active");