Skip to content

Conversation

kjarosh
Copy link
Owner

@kjarosh kjarosh commented Jun 12, 2024

No description provided.

kjarosh and others added 4 commits June 12, 2024 12:32
The current implementation was synchronous only, so that when
an async callback was used, the menu was being disposed prematurely.
This patch ensures that in case of asynchronous callbacks,
the menu will be disposed after they finish.
This modal informs the user that they can use shortcuts
for copy, cut, and paste instead of using the context menu.
This modal is meant to be displayed when the browser
does not support reading the clipboard.
Ruffle does not have direct clipboard access on web, so the current
paste implementation from the context menu does not work.
This patch intercepts the paste context menu callback,
and uses the Clipboard API to ask the browser for the clipboard
and update it before calling the callback.
When the Clipboard API is not available, a modal informing
the user about cut, copy, paste shortcuts is displayed.
@kjarosh kjarosh force-pushed the master branch 23 times, most recently from c14d93a to f6eec74 Compare July 19, 2024 08:58
@kjarosh kjarosh force-pushed the master branch 11 times, most recently from 38c3bac to 23696a5 Compare August 16, 2025 17:25
@kjarosh kjarosh force-pushed the master branch 16 times, most recently from 30dd8af to 8fde551 Compare August 22, 2025 19:37
@kjarosh kjarosh force-pushed the master branch 3 times, most recently from d328041 to 7ec3889 Compare September 7, 2025 21:33
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