mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-19 02:10:49 -05:00
On macOS AppKit runs Edit > Paste's key equivalent and takes the key-down, but winit still delivers the key-up (it forwards key-ups while Cmd is held). The native menu fed egui a press plus a made-up release, and clipboard_keys treats a Cmd+V release without a paste event as an image paste (egui-winit drops Cmd+V when the clipboard holds no text). So one Cmd+V pasted three times: the menu's press, its synthetic release, and winit's real release. - native_menu: a key equivalent adds only its press, inserted ahead of its key-up when that is already queued; winit delivers the release. - clipboard_keys: a Cmd+V key press that reached egui marks the paste as seen, so its release doesn't paste again; any V/Insert release clears the mark (releasing Ctrl before V left it stale and swallowed the next image paste on Linux/Windows).