Add append path point shortcut handling in App.tsx

This commit is contained in:
2026-04-13 22:28:32 +02:00
parent 49cd4f0cb1
commit 971c2603f7

View File

@@ -3329,6 +3329,21 @@ export function App({ store, initialStatusMessage }: AppProps) {
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();