From 48aaadd29960f6769a1aec42f2925e14277a281f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 12 May 2026 22:31:49 +0200 Subject: [PATCH] auto-git: [change] src/app/App.tsx --- src/app/App.tsx | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 4ae762cb..feb8bf35 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -5646,6 +5646,25 @@ export function App({ return; } + const isPathPointSelection = + editorState.selection.kind === "pathPoint" || + editorState.selection.kind === "pathPoints"; + const isAppendPathPointShortcut = + event.shiftKey && + !event.altKey && + !event.ctrlKey && + !event.metaKey && + (event.code === "KeyW" || + (event.code === "KeyD" && isPathPointSelection)); + + if (isAppendPathPointShortcut) { + if (editorState.toolMode === "select" && selectedPath !== null) { + event.preventDefault(); + handleAddPathPoint(); + } + return; + } + if (isDuplicateShortcut) { const duplicated = handleDuplicateSelection(); @@ -5656,21 +5675,6 @@ export function App({ return; } - const isAppendPathPointShortcut = - event.shiftKey && - !event.altKey && - !event.ctrlKey && - !event.metaKey && - event.code === "KeyW"; - - if (isAppendPathPointShortcut) { - if (editorState.toolMode === "select" && selectedPath !== null) { - event.preventDefault(); - handleAddPathPoint(); - } - return; - } - if (isDeleteShortcut) { if (editorState.toolMode !== "create") { const deleted = handleDeleteSelectedSceneItem();