-
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
Demo keyboard input "p" not working #2739
Comments
Apparently the reason is this: egui/crates/eframe/src/web/events.rs Lines 92 to 97 in 38849fe
This code should probably check for modifiers. For Windows and Linux it's Ctrl, and for macOS I guess it's Command? But I am not sure. |
Oh wow, this is embarrassing 🤦 Yes, should be a very easy fix to check for modifers when we ignore keys. |
eframe 0.21.3 released with fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short Description
In the deployed egui demo the character
p
is being ignored in some TextEdit fields.Expected behaviour
Press
P
on keyboard and ap
character appears in selected editable field.Press
Shift + P
on keyboard and aP
character appears in selected editable field.Observed behaviour
The keyboard input
P
is ignored in following fields:These fields work as expected:
Note of inconsistency - when testing, spamming key
p
while changing TextEdit field selection resulted in registering the character occasionally in either of the fields (sometimes in the just selected and sometime in the just deselected)Native build of
egui_demo_app
(master branch) locally works fine.Tested Platforms
The text was updated successfully, but these errors were encountered: