From b1f09af7fa3427f450eb6c2c6437ad3a882524e8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 16 Jun 2024 16:01:52 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=A0=BC=E7=BC=96=E8=BE=91=E6=92=A4=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/render/av/cell.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 2030ebca5..e07b6b1a8 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -15,6 +15,7 @@ import {hintRef} from "../../hint/extend"; import {pathPosix} from "../../../util/pathName"; import {mergeAddOption} from "./select"; import {escapeAttr} from "../../../util/escape"; +import {electronUndo} from "../../undo"; const renderCellURL = (urlContent: string) => { let host = urlContent; @@ -435,6 +436,9 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type if (event.isComposing) { return; } + if (electronUndo(event)) { + return; + } if (event.key === "Escape" || event.key === "Tab" || (event.key === "Enter" && !event.shiftKey && isNotCtrl(event))) { updateCellValueByInput(protyle, type, blockElement, cellElements);