From 2730e1c8152121dedb7193cb9546e634ce4be9bc Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 28 Oct 2022 23:41:11 +0800 Subject: [PATCH] :sparkles: fix https://github.com/siyuan-note/siyuan/issues/4781 --- 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 63a2eb2ce..f653fb1ff 100644 --- a/app/src/util/globalShortcut.ts +++ b/app/src/util/globalShortcut.ts @@ -339,7 +339,7 @@ export const globalShortcut = () => { if (!event.altKey && !event.shiftKey && isCtrl(event)) { if (event.key === "Meta" || event.key === "Control" || event.ctrlKey || event.metaKey) { window.siyuan.ctrlIsPressed = true; - if (window.siyuan.config.editor.floatWindowMode === 1) { + if (window.siyuan.config.editor.floatWindowMode === 1 && !event.repeat) { showPopover() } } else {