egui icon indicating copy to clipboard operation
egui copied to clipboard

Implement Copy, Cut, Paste and others in EventFilter

Open rustbasic opened this issue 11 months ago • 4 comments

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.

rustbasic avatar Jan 23 '25 13:01 rustbasic

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.

github-actions[bot] avatar Jan 23 '25 13:01 github-actions[bot]

+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 …

mkrueger avatar Feb 15 '25 17:02 mkrueger

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?

lucasmerlin avatar Feb 18 '25 15:02 lucasmerlin

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.

rustbasic avatar Feb 19 '25 13:02 rustbasic