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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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()