diff --git a/src/app/editor/[projectId]/FlowchartEditor.tsx b/src/app/editor/[projectId]/FlowchartEditor.tsx index 539b2ed..a37e8fc 100644 --- a/src/app/editor/[projectId]/FlowchartEditor.tsx +++ b/src/app/editor/[projectId]/FlowchartEditor.tsx @@ -161,6 +161,13 @@ function FlowchartEditorInner({ initialData }: FlowchartEditorProps) { // TODO: Implement in US-036 }, []) + // Handle edge deletion via keyboard (Delete/Backspace) + const onEdgesDelete = useCallback((deletedEdges: Edge[]) => { + // Edges are already removed from state by onEdgesChange + // This callback can be used for additional logic like logging or dirty state + console.log('Deleted edges:', deletedEdges.map((e) => e.id)) + }, []) + return (