diff --git a/ui/src/workflow/common/shortcut.ts b/ui/src/workflow/common/shortcut.ts index 082d850e3..44e7700a1 100644 --- a/ui/src/workflow/common/shortcut.ts +++ b/ui/src/workflow/common/shortcut.ts @@ -121,10 +121,10 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) { keyboard.on(['cmd + v', 'ctrl + v'], paste_node) // undo keyboard.on(['cmd + z', 'ctrl + z'], () => { - if (!keyboardOptions?.enabled) return true - if (graph.textEditElement) return true - lf.undo() - return false + // if (!keyboardOptions?.enabled) return true + // if (graph.textEditElement) return true + // lf.undo() + // return false }) // redo keyboard.on(['cmd + y', 'ctrl + y'], () => {