egui icon indicating copy to clipboard operation
egui copied to clipboard

Supporting enter key on numeric pad.

Open ruimo opened this issue 1 year ago • 5 comments

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.

ruimo avatar Aug 30 '22 07:08 ruimo

Preferably you would have:

  • AnyEnter
  • NumEnter
  • Enter

that makes the most sense for modifiers as well (Any, Left, Right)

Ryder17z avatar Aug 30 '22 22:08 Ryder17z

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.

yerke avatar Oct 16 '22 07:10 yerke

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.

wiz21b avatar Apr 29 '23 16:04 wiz21b

I think adding a Key::NumpadEnter makes sense, and then also check for that wherever we currently check for Key::Enter

emilk avatar Jan 09 '24 12:01 emilk

AnyEnter would be nice to have too, like mentioned above.

Ryder17z avatar Jan 09 '24 16:01 Ryder17z