diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx index 34c7fc4dcc..c06e1b9524 100644 --- a/web/app/components/workflow/index.tsx +++ b/web/app/components/workflow/index.tsx @@ -264,7 +264,12 @@ const Workflow: FC = memo(({ const { shortcutsEnabled: workflowHistoryShortcutsEnabled } = useWorkflowHistoryStore() - useKeyPress(['delete', 'backspace'], handleNodesDelete) + useKeyPress(['delete', 'backspace'], (e) => { + if (isEventTargetInputArea(e.target as HTMLElement)) + return + + handleNodesDelete() + }) useKeyPress(['delete', 'backspace'], handleEdgeDelete) useKeyPress(`${getKeyboardKeyCodeBySystem('ctrl')}.c`, (e) => { if (isEventTargetInputArea(e.target as HTMLElement))