-
Notifications
You must be signed in to change notification settings - Fork 891
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
KeyEvent::text
should be None
for backspace
#3381
Comments
Use https://docs.rs/winit/latest/winit/keyboard/enum.NamedKey.html#method.to_text if you want text repr of |
Okay. It looks like I may have misread the docs, and the behavior on MacOS is the (and I assume windows) is buggy? My issue is that this behavior is not consistent across platforms. |
KeyEvent::text
should be None
for backspace
I guess reopening because of platform inconsistencies. |
On X11 it seems to be the same issue: pressing backspace returns |
you can, it's just different issue to the originally reported one.
The issue is a bit more complicated since there's generally no control on how |
Is there some documentation / standard that is governing this behavior that you can point me to? The distinction between what |
I'd at least remove |
Tested Winit 0.29 and bdeb257 with Chrome 120 and Firefox 121.
MacOS 13.6.2 (native) produces
Some("\u{8}")
, and from a glance at the code, it looks like Windows is probably doing the same. Linux doesn't seem as clear and I'm unable to test.It would be ideal if this behavior was the same on all platforms.
The text was updated successfully, but these errors were encountered: