Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(builder): allow deletion of nodes and edges via del key (#7483)

Nicholas Tindle04dcd230cdbc
diff --git a/rnd/autogpt_builder/src/components/Flow.tsx b/rnd/autogpt_builder/src/components/Flow.tsx
index 190076b84e..1bfb1fb87b 100644
--- a/rnd/autogpt_builder/src/components/Flow.tsx
+++ b/rnd/autogpt_builder/src/components/Flow.tsx
@@ -457,6 +457,7 @@ const FlowEditor: React.FC<{
onConnect={onConnect}
nodeTypes={nodeTypes}
onEdgesDelete={onEdgesDelete}
+ deleteKeyCode={["Backspace", "Delete"]}
>
<div style={{ position: 'absolute', right: 10, zIndex: 4 }}>
<Input