Hacker News new | ask | show | jobs
by grishka 682 days ago
Ideally, you shouldn't rely on characters for this, you should instead use the key code (which is 90 for z/я), which identifies the physical key on the keyboard as opposed to its corresponding character in the current layout.

Here's a useful tool for finding out key codes: https://www.toptal.com/developers/keycode