From 0fa8f1da064bdba43ddd52990f3faa49c84b8ad8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 15 Aug 2022 10:29:28 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5637 --- app/src/protyle/undo/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/protyle/undo/index.ts b/app/src/protyle/undo/index.ts index 48550c049..e126be1e9 100644 --- a/app/src/protyle/undo/index.ts +++ b/app/src/protyle/undo/index.ts @@ -95,11 +95,13 @@ export const electronUndo = (event: KeyboardEvent) => { if (matchHotKey(window.siyuan.config.keymap.editor.general.undo.custom, event)) { getCurrentWindow().webContents.undo(); event.preventDefault(); + event.stopPropagation(); return; } if (matchHotKey(window.siyuan.config.keymap.editor.general.redo.custom, event)) { getCurrentWindow().webContents.redo(); event.preventDefault(); + event.stopPropagation(); return; } /// #endif