Implement Copy, Cut, Paste and others in EventFilter
Implement Copy, Cut, Paste and others in EventFilter
- Related #5540
- Related #5553
- Closes #5618
It seems like it would be better to make it work if true and not work if false, even if it's _focus, but for now, I'll keep it as is.
Preview available at https://egui-pr-preview.github.io/pr/5634-patch159 Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.
+1 I need that so badly - you can't imagine.
I've 2 non trivial UIs and need to manage these events on APP level - esp. because I can remap commands in my Apps. This is a design flaw in egui - it's ok for small apps to let the ui lib handle that but not for big desktop apps.
One of these is a multi window drawing tool… thanks for working on that. Unfortunately egui has gotten too big and that patch seems to be forgotton :(.
Unfortunately I've a large set of libraries that use egui, otherwise I would just take your patch to fix my issue. But if it's not included soon I need to fork all libraries and use my fork …
So to understand this correctly, this is needed so you can handle the events globally, but widgets can override this and have their own behavior if focussed? Or is it only needed to tell egui not to handle certain events?
This is about turning off a specific event in TextEdit. Users can turn off unwanted events or handle the events that are turned off directly.