auto-git:

[change] src/app/App.tsx
This commit is contained in:
2026-05-12 22:31:49 +02:00
parent 2c20de977c
commit 48aaadd299

View File

@@ -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();