How to convert key code to character using javascript
var key_code = 65;
the result should be
character = "a";
String.fromCharCode() is what you want:
String.fromCharCode()
The fromCharCode () method converts Unicode values ββto characters.Syntax String.fromCharCode(n1, n2, ..., nX)
The fromCharCode () method converts Unicode values ββto characters.
String.fromCharCode(n1, n2, ..., nX)
As seen here :
String.fromCharCode((96 <= key && key <= 105) ? key-48 : key)