fix: node shortcuts active in input fields (#3438)

This commit is contained in:
Pascal M
2024-04-13 03:48:39 +02:00
committed by GitHub
parent 6021ca5c31
commit a355225a83
4 changed files with 39 additions and 2 deletions

View File

@@ -65,6 +65,8 @@ type Shape = {
setCustomTools: (tools: ToolWithProvider[]) => void
clipboardElements: Node[]
setClipboardElements: (clipboardElements: Node[]) => void
shortcutsDisabled: boolean
setShortcutsDisabled: (shortcutsDisabled: boolean) => void
}
export const createWorkflowStore = () => {
@@ -111,6 +113,8 @@ export const createWorkflowStore = () => {
setCustomTools: customTools => set(() => ({ customTools })),
clipboardElements: [],
setClipboardElements: clipboardElements => set(() => ({ clipboardElements })),
shortcutsDisabled: false,
setShortcutsDisabled: shortcutsDisabled => set(() => ({ shortcutsDisabled })),
}))
}