mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 01:50:22 -06:00
The menu bar takes ⌘V's key-down as Edit › Paste's key equivalent, and `native_menu::key_events` turns it back into egui input. With text on the clipboard that was a Paste event; with only a picture (a screenshot) it was nothing, leaving the paste to the window's own key-up. egui's window integration only releases a key whose press it saw, so that release never came and ⌘V pasted nothing, while Edit › Paste and ⌘V with the menu open worked. `key_events` now ends ⌘V with the key's release, as it already did for ⌘X and ⌘C: without a Paste event that release is the picture paste `PasteChord` looks for, and after one it ends that paste so the next picture paste still fires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>