Skip to content
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

Differentiate between keyboard/numpad chars #860

Open
Laocoon7 opened this issue Feb 4, 2024 · 0 comments
Open

Differentiate between keyboard/numpad chars #860

Laocoon7 opened this issue Feb 4, 2024 · 0 comments

Comments

@Laocoon7
Copy link

Laocoon7 commented Feb 4, 2024

Is your feature request related to a problem? Please describe.
I need to differentiate between the number(key) pad to the right of the arrow keys, and the numbers across the top of the keyboard.

Describe the solution you'd like
A quick and dirty solution would be for KeyEvent to also have a scancode attached allowing the developer to handle specific scan codes. A more elegant solution would be for KeyEvent to hold a keypad(key_1) enum including /*-+[enter] as well.

Describe alternatives you've considered if any
I've dumped events and currently there is no difference between KeyCode::char('1') originating at either spot on the keyboard.

Additional context
KeyEvent::KeypadBegin could be deprecated with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant