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

This commit is contained in:
Nicholas Tindle
2024-07-18 16:45:28 -05:00
committed by GitHub
parent c8b46109fe
commit 04dcd230cd

View File

@@ -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