mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 18:27:02 -06:00
Fix #34: Ctrl/Cmd+Shift+V pastes in place
Paste in Place is Cmd+Shift+V, but egui reports every Cmd+V chord as a Paste event (or, for what isn't text, only the key's release), never as the key, and the handler ran Paste for every Paste event. A paste now runs the paste command whose V chord is held (Paste in Place, Paste on All Artboards, Paste without Formatting; user overrides included), Paste for the Paste key and Shift+Insert. Envelope Distort > Edit Contents also had Cmd+Shift+V; it loses the duplicate, and a test checks that no two commands, tools or panels share a default shortcut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
72be324732
commit
d3d6cce917
@@ -142,7 +142,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"object.envelope.editContents",
|
||||
"Edit Contents",
|
||||
["Object", "Envelope Distort"],
|
||||
Some("Cmd+Shift+V"),
|
||||
None,
|
||||
"{editing?: bool} toggle Edit Contents / Edit Envelope → {editing}",
|
||||
has_envelope,
|
||||
env_edit_contents
|
||||
|
||||
Reference in New Issue
Block a user