I have char, for example
var char = 'a'
I need to know values of both keyCode(65) and charCode(97). I know how to get charCode value 97.
'a'.charCodeAt(0)
How to get keyCode value? Simple subtraction - 32 do not work for fe 'A'. I know that I can have array of these values and search in them, but this seems a little overkill for me. Any other way ?