bongo.cat icon indicating copy to clipboard operation
bongo.cat copied to clipboard

Nothing works on non-Latin keyboard layouts

Open grishka opened this issue 4 years ago • 1 comments

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.

grishka avatar Oct 23 '20 13:10 grishka

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

Externalizable avatar Oct 24 '20 05:10 Externalizable