auto-git:
[change] src/app/App.tsx
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user