fix: prevent nodes from being unintentionally deleted by pressing the backspace key. (#21023)
This commit is contained in:
@@ -61,7 +61,7 @@ export const useShortcuts = (): void => {
|
||||
return !showFeaturesPanel && !isEventTargetInputArea(e.target as HTMLElement)
|
||||
}, [workflowStore])
|
||||
|
||||
useKeyPress(['delete', 'backspace'], (e) => {
|
||||
useKeyPress(['delete'], (e) => {
|
||||
if (shouldHandleShortcut(e)) {
|
||||
e.preventDefault()
|
||||
handleNodesDelete()
|
||||
|
Reference in New Issue
Block a user