🎨 数据库单元格编辑撤销

This commit is contained in:
Vanessa 2024-06-16 16:01:52 +08:00
parent 011fcbf1c2
commit b1f09af7fa

View file

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