From 2e68c770a536c8d08e4f4396e4251e69dc5fb184 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 16 Sep 2022 21:43:22 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/5896 --- app/src/util/globalShortcut.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts index 0bf2e35fb..c7e59d01c 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");