Editor has no 'duplicate path' shortcut — user with 10 mirrored petals must draw each one individually even though the Edit menu has no Duplicate Path entry #213
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
src/components/editor/Editor.tsx's keyboard shortcuts hook (useKeyboardShortcuts.ts) binds Cmd+Z, Cmd+Shift+Z, Cmd+A, Tab, Enter, Esc, plus the tool shortcuts. It does NOT bind Cmd+D for "duplicate selected path."grep -n 'duplicate\|DUPLICATE' src/components/editor/useKeyboardShortcuts.tsreturns 0 matches. The hook doesn't have a duplicate binding.The editor's path operations are exposed only via:
A user who:
...and now has no shortcut to bind to a custom key.
Where
src/components/editor/useKeyboardShortcuts.tsgrep -n 'duplicate' src/components/editor/useKeyboardShortcuts.tsreturns 0Suggested fix shape
Once #187 and #200 are landed, add to the editor's keyboard hook:
onDuplicateSelectedPathis the same handler from #187. The hook should:target instanceof HTMLInputElementcheck)The hint "(Cmd+D)" should appear in:
Severity
Medium. Duplicate is a common operation; the user wants the keyboard shortcut once the affordance exists.
Discovered by
Gap analysis (2026-10-02) of editor keyboard shortcuts.
Related
Shipped in commit
094755fon origin/main.onDuplicateSelectedPath(#187), the same handler the right-panel Duplicate Path button (#187) and right-click context menu (#191) already invoke — so all three call paths share one implementation.Also closed #176 — the Workspace's "Duplicate" context-menu hint (Ctrl+D) now works because the Workspace hook already bound Ctrl+D and the Editor hook now matches it.
Discoverable surfaces:
Tests: 9 new cases in useKeyboardShortcuts.test.ts (Cmd+D, Ctrl+D, no-selection guard, plain-D fallthrough to delete-node tool, modifier guards, focus skip-list, no interference with Cmd+A). All 1051 tests pass; tsc, lint, and build clean.