mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 01:32:49 +00:00
fix: 禁用ctrl + z
This commit is contained in:
parent
cc8d5500aa
commit
53ee5a0a0c
|
|
@ -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'], () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue