|
|
|
|
|
by mstange
4261 days ago
|
|
Nightly and Aurora Firefox builds actually support the "code" field on keyboard events, which lets JS know which physical key was pressed on the keyboard. For example, when a Dvorak user presses the key that would be W on a QWERTY layout (for moving forwards in a game), you'll get a keydown event with e.key == "," and e.code == "KeyW". I'd really like to know what the spec status on that is, and whether other browsers implement it. |
|