fix: workflow shortcuts (#21164)
This commit is contained in:
parent
30cfc9c172
commit
dbae5b0564
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ export const useShortcuts = (): void => {
|
||||||
return !showFeaturesPanel && !isEventTargetInputArea(e.target as HTMLElement)
|
return !showFeaturesPanel && !isEventTargetInputArea(e.target as HTMLElement)
|
||||||
}, [workflowStore])
|
}, [workflowStore])
|
||||||
|
|
||||||
useKeyPress(['delete'], (e) => {
|
useKeyPress(['delete', 'backspace'], (e) => {
|
||||||
if (shouldHandleShortcut(e)) {
|
if (shouldHandleShortcut(e)) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
handleNodesDelete()
|
handleNodesDelete()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue