egui
egui copied to clipboard
Supporting enter key on numeric pad.
Is your feature request related to a problem? Please describe. No, this is not related to any problems.
Describe the solution you'd like eframe::egui::Key::Enter does not fire if enter key on numeric pad is pressed. Add eframe::egui::Key::NumEnter that is fired if enter key on numeric pad is hit.
Describe alternatives you've considered Firing eframe::egui::Key::Enter when enter key on numeric pad too can be an alternative (does not add new event code).
Additional context None.
Preferably you would have:
- AnyEnter
- NumEnter
- Enter
that makes the most sense for modifiers as well (Any, Left, Right)
Hi @emilk. Thanks for your work on egui. Are you interested in getting a PR for supporting NumEnter (enter from numpad)? If so, can you please share your thoughts on how you would prefer it work? Are you ok with a new Key::NumEnter
?
Right now there is no easy way to work around this issue, as far as I understand.
Thanks.
I'd like to vote for this issue. In my case, I expect my user to type in numbers and therefore to prefer to use the keypad Enter rather than the regular Enter.
I think adding a Key::NumpadEnter
makes sense, and then also check for that wherever we currently check for Key::Enter
AnyEnter would be nice to have too, like mentioned above.