Could not find a solution to what seems like a simple problem to me.
I use var a = evt.keyCode;to determine which key was pressed.
The problem is that the value I get is the ASCII code of the clicked key, and not the one that was pressed.
If, for example, the user uses a French keyboard, pressing a key , so instead of getting the ASCII code, I get 55, which is the ASCII code . 7 é é 7
Ranch source
share