Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5637

Vanessa0fa8f1da064b
diff --git a/app/src/protyle/undo/index.ts b/app/src/protyle/undo/index.ts
index 48550c049b..e126be1e96 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