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

web: Don't set the clipboard when notified about clipboard change #18180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Oct 5, 2024

This patch introduces WebUiBackend::set_clipboard_content_buffer which is able to set the clipboard buffer without also setting the clipboard. This method is then used in places where Ruffle is notified about a paste event, so that it doesn't have to set the clipboard to the same value.

This fixes a borrow checker error during pasting.

This does not (yet) fix the context menu pasting issue.

This patch introduces WebUiBackend::set_clipboard_content_buffer which
is able to set the clipboard buffer without also setting the clipboard.
This method is then used in places where Ruffle is notified about a paste
event, so that it doesn't have to set the clipboard to the same value.

This fixes a borrow checker error during pasting.
@kjarosh kjarosh added A-web Area: Web & Extensions T-fix Type: Bug fix (in something that's supposed to work already) labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web Area: Web & Extensions T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant