-
Notifications
You must be signed in to change notification settings - Fork 60
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
Number key presses don't generate key objects. #5
Comments
I'm also curious about this. |
in fact it concerns also all characters like ,.-#+* } else if (s.length === 1 && s >= 'A' && s <= 'Z') { |
no fix forthcoming to handle all the keys? (including 0-9 and special cars? |
Has this problem been solved? |
@mappto, seemes that there's a bunch of fixes (and forks), none of them are 100% correct :D The most obvious fix is not bulletproof. |
in case someone is still wondering how to get numbers: if(key){ |
Thanks for get the number, how to get ²&é"'(-è_çà)=,;:!?./§~#{[|`^@]} |
I did not try, but I imagine the approach would be similar: cast to char, or cast to int and check the ascii code. |
If I follow the example and press
1
or any number on the keyboard, it is returned asch
butkey
isundefined
. Is this intentional?The text was updated successfully, but these errors were encountered: