-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Unexpected behaviour when type query in Russian #345
Comments
Unfortunately charCode isn't set for keyDown events, only keyPress events. Keyboard events in browsers are broken, and i18n just makes it worse, so I'm not sure there's a good solution to this, but we can take a look :) |
+1 Character "б" Data keydown keypress keyup keyCode 188 1073 188 charCode — 1073 — |
Thanks for posting. I meant can you post what happens when you press your "comma" key? |
"comma [б]" key works as "enter" key, adds tags in multi mode |
Yes, but I need to know what http://www.w3.org/2002/09/tests/keys.html says, when you press your comma key, not your б key, so that we can work out how we can decide what the user pressed. б is simply being treated as comma, because it has the same keycode. On keyPress, we see the character, and I fear we may have to wait for keyPress before acting on ','. However, I'd like to see what the w3 link above says when you press your version of your comma. Many thanks for assisting! |
I understood, Firefox, Mac OS: Data keydown keypress keyup keyCode 188 0 188 charCode — 44 — Character , Chrome, Mac OS: Data keydown keypress keyup keyCode 188 44 188 charCode — 44 — Character , Safari: Data keydown keypress keyup keyCode 188 44 188 charCode — 44 — Character , |
ok, great, thanks. That was kinda what I was afraid of. I'll have a bit of a play and see if I can come up with a solution. |
same problem with hebrew... |
Hi were you able to find a solution to this? |
We are faced with the same problem. It works as expected only in Firefox. |
Version 1 of react-select is no longer supported. In the best interest of the community we've decided to spend the time we have available on the latest version. We apologise for any inconvenience. Please see: |
Hello, when I type some queries in Russian and use "б" letter, input always interrupt. The root of evil at this line https://github.com/JedWatson/react-select/blob/master/src/Select.js#L427. On a russian keyboard we have "б" letter, whereas in english it's ",". We can fix this, by checking charCode instead of key number.
The text was updated successfully, but these errors were encountered: