-
Notifications
You must be signed in to change notification settings - Fork 6
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: Input is broken on international or non-qwerty keyboard layouts #1
Comments
The answer is probably in here somewhere: rust-windowing/winit#1806 |
enter/backspace seem to produce ReceivedCharacter events in non-web scenarios (running the bevy "char_input_events" example) but not in this game / in wasm builds.
As far as I can tell, |
It appears at a glance that winit just passes along keypress events. https://developer.mozilla.org/en-US/docs/Web/API/Document/keypress_event And while enter works in that example, backspace does not. (Chrome) So that angle seems pretty hopeless. However, it looks like I am not actually sure what this "scan code" is though, and the results when typing punctuation seem mysterious. (particularly |
Blocked on rust-windowing/winit#1888 |
Just checked on this again, and winit (main branch) is still using If we want to support non-qwerty layouts right now, it probably needs to be by allowing the user to choose the layout in a settings menu. |
Fixed! It's now possible to get character data form Bevy's |
This is due to a workaround for an issue that was causing the backspace key to be super janky. That issue may be in bevy and/or winit.
taipo/src/typing.rs
Lines 400 to 413 in ebcffca
The text was updated successfully, but these errors were encountered: