-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Can not use keybindings while in non-Latin keyboard layout #4618
Comments
It looks like code exists in I actually think all of our targeted browsers support cc @tyrasd - can you advise on this? My gut is that what @skfd is asking for is impossible, but I don't know really. |
Here is the commit, but it has no tests or test cases to go through manually. Will try to come up with something. Will update this issue as I investigate\prototype. Generally, I would say iD keybinding should behave the same way the other apps do. I know that Microsoft Word or Gmail work the way I expect in my case. But will have to research the case described above. |
Hmm, tricky issue. I believe #3572 is not really too relevant for this case, because it just tackled the issue of inconsistent behavior when working different layouts of all latin keyboards (if the help says you should press the Here we have a situation where a keyboard may not have an actual My intuition would say that for such situations it might make sense to bind the event behind the |
I tested with US and Russian keyboards here: http://unixpapa.com/js/testkey.html
It looks like we maybe can improve this. We're currently binding and matching on So, looking at this code: iD/modules/lib/d3.keybinding.js Lines 54 to 68 in 8720f7e
Rather than an if/else, we could just retest all the matches a third time using |
sounds like a good approach to me. 👍 |
I believe I was able to fix this, and it seems to work locally with my pop-up Cyrillic keyboard. Can you confirm by testing in http://preview.ideditor.com/master ? I would like to write some unit tests for this feature in |
@bhousel I played around with it and it works indeed. Thank you! |
For testing iD, we could probably accomplish the same thing with d3.selection#dispatch, which I believe was added to D3 more recently than when @tmcw built |
This was working for some time, but now is broken again. Did not figure out the tests, sorry, just noticed while using. @bhousel Can we re-open the issue, please? Or it's ok to create new one? |
iD has a typical minor issue -- it requires to switch to English layout to do hotkeying.
Want to create issue before diving into making a pull request.
We're bind to character input. But we should bind to keyboard key pressed.
I understand that we do it to support lower-case upper-case letters synonyms. But we should be checking shift key instead.
Could you please suggest what test module should I add test for keybindings i18n?
How to test
Expected
Actual
Browsers
Chrome 63, E D G E 4 1
iD version
latest
master
commitThe text was updated successfully, but these errors were encountered: