diff --git a/src/app/App.tsx b/src/app/App.tsx index 08e0f44c..7ce242db 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -6383,13 +6383,20 @@ export function App({ store, initialStatusMessage }: AppProps) { }; const handleDeleteSelectedSceneItem = () => { + const selectedPathPoint = getSingleSelectedPathPoint(editorState.selection); + + if (selectedPathPoint !== null) { + handleDeletePathPoint(selectedPathPoint.pointId); + return true; + } + const selectedBrushId = getSingleSelectedBrushId(editorState.selection); if (selectedBrushId !== null) { return handleDeleteBrush(selectedBrushId); } - const selectedPathId = getSingleSelectedPathId(editorState.selection); + const selectedPathId = getSingleSelectedPathOwnerId(editorState.selection); if (selectedPathId !== null) { return handleDeletePath(selectedPathId);