-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
In windows, windows modifier key (in any form of Win, LWin, RWin) seem to NOT be registered/tracked by egui #5604
Comments
The modifiers are assigned here: egui/crates/egui-winit/src/lib.rs Lines 453 to 469 in 164f56f
But the |
There is also the web implementation, where the super key is mapped to the egui/crates/eframe/src/web/input.rs Lines 168 to 182 in 366900c
So for example, super+Z does the undo shortcut on Windows and Linux, which it probably shouldn't. I think it would be better to keep There is #5237 that is adding the fn modifier, so it would be good to review and merge/close that PR before working on this one to avoid conflicts. |
They dont even seem to be in the Modifiers struct, and of the fields in that struct, none seem to track the Win modifier key press/release.
Its a bigger deal than just not being able to code to those, because since egui windows seem to 'eat' key events, doing something like a win key press outside then release inside the egui window can make external apps not see the release event and think the win key is stuck etc
The text was updated successfully, but these errors were encountered: