This commit is contained in:
Vanessa 2022-11-09 00:19:47 +08:00
parent ddb214b1e8
commit 395c2e6875

View file

@ -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) {