Skip to content

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

:art: 数据库单元格编辑撤销

Vanessab1f09af7fa34
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 2030ebca5c..e07b6b1a86 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);