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

Nothing works on non-Latin keyboard layouts #146

Open
grishka opened this issue Oct 23, 2020 · 1 comment
Open

Nothing works on non-Latin keyboard layouts #146

grishka opened this issue Oct 23, 2020 · 1 comment

Comments

@grishka
Copy link

grishka commented Oct 23, 2020

Steps to reproduce:

  1. Switch to Russian keyboard layout
  2. Try pressing some keys
  3. Nothing happens

You shouldn't be using characters typed by keys unless you're accepting text input. Key codes correspond one-to-one to physical keys on the keyboard; characters do not, they're mapped by the operating system depending on user preferences.

Use this tool to see for yourself: event.key you're using changes depending on the active layout, but the numeric key code in event.which stays the same.

@Externalizable
Copy link
Owner

Great catch! Accepting Pull Requests for this, otherwise I'll get around to fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants