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

Keyboard shortcuts on non-english keyboards #11945

Closed
kevinsimper opened this issue Aug 12, 2020 · 9 comments
Closed

Keyboard shortcuts on non-english keyboards #11945

kevinsimper opened this issue Aug 12, 2020 · 9 comments
Labels

Comments

@kevinsimper
Copy link

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.

@Tomastomaslol
Copy link
Member

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

@kevinsimper
Copy link
Author

@Tomastomaslol Thank you 👍

Looking at the code I found something in UI, but the README also needs a update:
https://github.com/storybookjs/storybook/blob/next/lib/ui/README.md#keyboard-shortcuts as src/modules/ui/configs/handle_routing.js does not exist inside ui anymore.

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:

if (e.shiftKey) {

@kevinsimper
Copy link
Author

@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?

@shilman shilman removed the tracked label Aug 15, 2020
@stale
Copy link

stale bot commented Sep 5, 2020

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!

@stale stale bot added the inactive label Sep 5, 2020
@tmeasday
Copy link
Member

tmeasday commented Sep 7, 2020

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

@stale stale bot removed the inactive label Sep 7, 2020
@stale
Copy link

stale bot commented Oct 4, 2020

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!

@stale stale bot added the inactive label Oct 4, 2020
@shilman shilman added the PN label Oct 4, 2020
@stale stale bot removed the inactive label Oct 4, 2020
@kainbacher
Copy link

+1 for this issue

@stale
Copy link

stale bot commented Dec 25, 2020

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!

@stale stale bot added the inactive label Dec 25, 2020
@ghengeveld
Copy link
Member

ghengeveld commented Sep 12, 2021

This should be addressed in #13319

Let me know if this needs more work.

@stale stale bot removed the inactive label Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants