fix: workflow shortcuts (#21164)

This commit is contained in:
zxhlyh
2025-06-18 16:31:41 +08:00
committed by GitHub
parent 30cfc9c172
commit dbae5b0564

View File

@@ -61,7 +61,7 @@ export const useShortcuts = (): void => {
return !showFeaturesPanel && !isEventTargetInputArea(e.target as HTMLElement)
}, [workflowStore])
useKeyPress(['delete'], (e) => {
useKeyPress(['delete', 'backspace'], (e) => {
if (shouldHandleShortcut(e)) {
e.preventDefault()
handleNodesDelete()