I have a Javascript function that listens for keydown events and executes according to the key pressed.
My problem is this:
In Chrome , when I press " ö ", which is a Turkish character with keyCode 246 , event.keyCode returns 188 , which is the comma character code (,). (Firefox returns 0, but this is not a problem for me, since it is different from a comma.)
So my question is: how to distinguish the character "ö" from the comma in Chrome? Or is there a way to get the source code of KeyCode 246 on a keydown event?
Thanks in advance.
source share