From 764436ed8e760fe4b43d609b7deb7033df145444 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Fri, 26 Sep 2025 14:10:28 +0800 Subject: [PATCH] feat(workflow): Enable keyboard delete for all node types including Start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes explicit Start node exclusion from handleNodesDelete function: - Remove BlockEnum.Start filter from bundled nodes selection - Remove BlockEnum.Start filter from selected node detection - Allows DEL/Backspace keys to delete Start nodes same as other nodes - Button delete already worked, now keyboard delete works too Fixes: Start nodes can now be deleted via both button and keyboard shortcuts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- web/app/components/workflow/hooks/use-nodes-interactions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/hooks/use-nodes-interactions.ts b/web/app/components/workflow/hooks/use-nodes-interactions.ts index ffb1770558..9352edbb2e 100644 --- a/web/app/components/workflow/hooks/use-nodes-interactions.ts +++ b/web/app/components/workflow/hooks/use-nodes-interactions.ts @@ -1656,7 +1656,7 @@ export const useNodesInteractions = () => { const nodes = getNodes() const bundledNodes = nodes.filter( - node => node.data._isBundled && node.data.type !== BlockEnum.Start, + node => node.data._isBundled, ) if (bundledNodes.length) { @@ -1669,7 +1669,7 @@ export const useNodesInteractions = () => { if (edgeSelected) return const selectedNode = nodes.find( - node => node.data.selected && node.data.type !== BlockEnum.Start, + node => node.data.selected, ) if (selectedNode) handleNodeDelete(selectedNode.id)