-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Keyboard shortcuts on non-english keyboards #11945
Comments
Hi @kevinsimper! Thanks for sharing your article! I wasn't aware of this issue so this will help me to build better applications in future! :) Would you like to try and solve it? Otherwise, I would be happy to fix this |
@Tomastomaslol Thank you 👍 Looking at the code I found something in UI, but the README also needs a update: So the keyboard shortcuts are here:
And it looks to be that the bug is looks if shiftKey is pressed down, which it is on non-english keyboards, but the shortcut does not specify it: storybook/lib/api/src/lib/shortcut.ts Line 33 in 00628f8
|
@tmeasday I can see you have worked in the shortcuts for storybook, that is super awesome! 👍 😄 Do you have an idea on how to solve this? What would be the approach? |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hi @kevinsimper sorry for the slow response I thought I had written something earlier but it seems to have been lost into the matrix.. I haven't worked on this code in quite a while so I would be pretty much figuring out it from first principles too ;) What I do know is the code is pretty contained to the setting page that sets them and the "module" that provides the API |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
+1 for this issue |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
This should be addressed in #13319 Let me know if this needs more work. |
Describe the bug
If you use a non-english keyboards, the keyboard shortcuts does not work, for example "/".
To Reproduce
I wrote a blogpost about it as it is a common a11y problem for non-native english programmers.
https://medium.com/@kevinsimper/why-keyboard-shortcuts-and-accessibility-in-other-keyboard-languages-rarely-works-8638abc15e71
How to solve
The reason is that a keycode integer is used instead of a key string to compare what was pressed.
The text was updated successfully, but these errors were encountered: