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

Use event.code for keybind instead of event.key #46

Closed
prokhn opened this issue May 7, 2023 · 0 comments · Fixed by #57
Closed

Use event.code for keybind instead of event.key #46

prokhn opened this issue May 7, 2023 · 0 comments · Fixed by #57
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@prokhn
Copy link

prokhn commented May 7, 2023

The problem is that using the "key" of the KeyboardEvent works correctly only within the same keyboard layout, so, for example, if the English layout is set, "key" will be "u", but if the Russian one is set, it will be "г". Therefore, it is better to use a universal key code for key bindings, which will be "KeyU" for any keyboard layout.

@ynshung ynshung added bug Something isn't working good first issue Good for newcomers labels Jun 2, 2023
@ynshung ynshung linked a pull request Jul 9, 2023 that will close this issue
ynshung added a commit to adsuth/better-yt-shorts that referenced this issue Jul 22, 2023
ynshung added a commit that referenced this issue Jul 22, 2023
Resolves #46 - Use eventcode instead of eventkey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants