Closed maxime-louf closed 2 years ago
That's how browser handles keyboard events, there is not much we can do on our side https://github.com/rtivital/omatsuri/blob/master/src/apps/events-keycode/generate-event-data.js
Oh you're right. So i feel like event.code shouldn't be used since it's response can't be properly anticipated and event.key should be preferred.
event.key cannot be used as well, it represents a pressed character, not key, for example, you will get E
value for English keyboard and У
(Russian letter) for Russian
Fair enough, closing this issue.
Hello, using the "Keyboard events code" app, event.code doesn't return the correct response with an AZERTY keyboard. For example, pressing letter 'A' return event.code 'keyQ' instead of 'keyA'. Same when pressing 'Z' and so on. However event.key return the correct key. Thank you