-
Notifications
You must be signed in to change notification settings - Fork 902
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
Calling preventDefault
on keypress
events suppresses browser clipboard events
#1829
Comments
I believe this problem has already been brought up in #1768, but copy/cut/paste wasn't explicitly called out there. |
preventDefault
on keypress
events suppressed browser clipboard eventspreventDefault
on keypress
events suppresses browser clipboard events
You can now use Though ultimately this should also be solved by #2156 or #2831. I researched this briefly, as far as I can tell you can change clipboard keybinds, so we could also expose an option to not use |
Closing in favor of #2831, which might be extended to handle certain things like that. |
winit/src/platform_impl/web/web_sys/canvas.rs
Line 193 in 33fb62b
This particular line of code prevents browsers to send clipboard events if winit's canvas is focused.
That makes it troublesome to add copy/cut/paste events support to UI frameworks.
The text was updated successfully, but these errors were encountered: