From b38863df8a13d4424ffffb20487b824aa7e9f400 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 15 Jun 2023 19:39:11 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/petal/issues/10 --- app/src/boot/globalShortcut.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/boot/globalShortcut.ts b/app/src/boot/globalShortcut.ts index 49b84c138..ce6f55a47 100644 --- a/app/src/boot/globalShortcut.ts +++ b/app/src/boot/globalShortcut.ts @@ -822,6 +822,8 @@ export const globalShortcut = (app: App) => { } }); if (matchCommand) { + event.stopPropagation(); + event.preventDefault(); return true; }