Skip to content

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

:bug: Allow reassigned undo and redo shortcuts https://github.com/siyuan-note/siyuan/issues/19348

Daniel8da25a1e215a
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 42e4f85f36..06cd2480f2 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -317,10 +317,6 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
event.stopPropagation();
return;
}
- if (matchHotKey(Constants.SIYUAN_KEYMAP.editor.general.undo.default, event) ||
- matchHotKey(Constants.SIYUAN_KEYMAP.editor.general.redo.default, event)) {
- event.preventDefault();
- }
if (protyle.disabled) {
if (event.key === "Escape" && !event.isComposing && !event.repeat) {
return;