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
commit a355225a83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 })),
}))
}