fix: form_builder undo_redo event is interfering with workflow_builder's undo_redo event
This commit is contained in:
parent
1384b65f5b
commit
9037c4140c
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ export const useStore = defineStore("form-builder-store", () => {
|
|||
}
|
||||
|
||||
let undo_redo_keyboard_event = onKeyDown(true, (e) => {
|
||||
if (!ref_history.value) return;
|
||||
if (e.ctrlKey || e.metaKey) {
|
||||
if (e.key === "z" && !e.shiftKey && ref_history.value.canUndo) {
|
||||
ref_history.value.undo();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue