-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
The keyboard shortcut of zoom in does not work on the JIS keyboard #3626
Comments
Thanks for the report! I wonder what a good an general solution to this would be. Sometimes you want to ignore the SHIFT key when matching a In any case, it would be a breaking change |
Please try #3769 and see if it helps! |
I confirmed that the
|
* Closes #3626 Basically, egui now ignores extra SHIFT and ALT pressed when matching keyboard shortcuts. This is because SHIFT and ALT are often requires to produce some logical keys. For instance, typing `+` on an English keyboard requires pressing `SHIFT =`, so the keyboard shortcut looking for `CTRL +` should ignore the SHIFT key. @abey79 You reported problem using `Cmd +` and `Cmd -` to zoom - does this fix it for you? You can run with `RUST_LOG=egui_winit=trace cargo run` to see a printout of how winit reports the logical and physical keys, and how egui interprets them. Weirdly, on Mac winit reports `SHIFT =` as `+`, but `CMD SHIFT =` as `=` (on an English keyboard) so things are… difficult.
Describe the bug
The keyboard shortcut of zoom in (
Ctrl+PlusEqual
) does not work on the JIS keyboard layout.On the JIS keyboard layout, we need the shift key to type
+ (Shift+;)
or= (Shift+-)
.https://en.wikipedia.org/wiki/Japanese_input_method
https://en.wikipedia.org/wiki/Keyboard_layout#Japanese
I have confirmed that this issue will be fixed with the following patch.
The text was updated successfully, but these errors were encountered: