egui’s Event type exposes Cut
, Copy
, and Paste
which are synthesized when Ctrl+C, Ctrl+V etc. is detected rather than making widgets watch for keyboard events themselves. This allows a degree of flexibility; for example, on Windows, egui watches for Shift+Insert, Ctrl+Insert, and Shift+Delete and synthesizes Cut/Copy/Paste events, so users who are used to those can still use them without any changes to application logic. It also allows being able to react to the winit named keys for Cut, Paste, etc. (which some keyboards have) the same as Ctrl+C, Ctrl+V etc.
I suggest adding a ClipboardEvent
to the iced_core::event::Event
enum along with appropriate code to create them.
I’d be willing to slap together a PR for this if approved.