Enhance path point handling and simplify path creation status message
This commit is contained in:
@@ -5660,7 +5660,9 @@ export function App({
|
|||||||
if (isAppendPathPointShortcut) {
|
if (isAppendPathPointShortcut) {
|
||||||
if (editorState.toolMode === "select" && selectedPath !== null) {
|
if (editorState.toolMode === "select" && selectedPath !== null) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
handleAddPathPoint();
|
handleAddPathPoint({
|
||||||
|
startGrab: event.code === "KeyD"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -9172,11 +9174,7 @@ export function App({
|
|||||||
label: "Create path"
|
label: "Create path"
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
requestViewportFocus({
|
setStatusMessage("Created Path.");
|
||||||
kind: "paths",
|
|
||||||
ids: [nextPath.id]
|
|
||||||
});
|
|
||||||
setStatusMessage("Created Path and framed it in the viewport.");
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setStatusMessage(getErrorMessage(error));
|
setStatusMessage(getErrorMessage(error));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user