Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only generate a paste command when pasted text is available. #5614

Closed
wants to merge 1 commit into from

Conversation

mkrueger
Copy link
Contributor

Not always a text is in the paste buffer.

IMO Cut/Copy/Paste shouldn't be part of the events - or at least have an opt_out. I've made desktop applications that have custom clipboard formats - and potentially can remap command keys.

So handling cut/copy/paste is a problem. (Remapping not really)
Alternatively the paste system could be enhanced to support multiple formats - but with that fix I can just handle ctrl+v myself.

  • [x ] I have followed the instructions in the PR template

Not always a text is in the paste buffer.
Copy link

Preview available at https://egui-pr-preview.github.io/pr/5614-pastefix
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@mkrueger
Copy link
Contributor Author

Better solution for my use case:
#5618

@mkrueger mkrueger closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant