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

Cannot type numbers using keypad in TextBox/TextField #8

Closed
gbaudic opened this issue Sep 4, 2017 · 0 comments
Closed

Cannot type numbers using keypad in TextBox/TextField #8

gbaudic opened this issue Sep 4, 2017 · 0 comments

Comments

@gbaudic
Copy link
Contributor

gbaudic commented Sep 4, 2017

While trying to solve #4 , I noticed another issue regarding text input: I cannot type numbers using the keypad.
A quick investigation shows that in the Key class, the codes corresponding to the key pad are SDLK_KP_x instead of SDLK_x (with x a number). Unfortunately, according to the SDL docs, SDLK_KP_x has a corresponding integer value way higher than the corresponding ASCII character. This prevents proper insertion of the character in the widget classes.

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