From 395c2e68759e50f58709e72a146f66a4b8d3cb5f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 9 Nov 2022 00:19:47 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6526 --- app/src/protyle/wysiwyg/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index e632c5ffe..c1fe00015 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1326,13 +1326,13 @@ export class WYSIWYG { if (target.tagName === "VIDEO" || target.tagName === "AUDIO" || event.inputType === "historyRedo") { return; } - /// #if !BROWSER if (event.inputType === "historyUndo") { + /// #if !BROWSER getCurrentWindow().webContents.redo(); + /// #endif window.siyuan.menus.menu.remove(); return; } - /// #endif const range = getEditorRange(this.element); const blockElement = hasClosestBlock(range.startContainer); if (!blockElement) {