I\'m getting codes [96..105] by calling String.fromCharCode(event.keyCode) when pressing keys [0..9](digits) on the keypad. Th
String.fromCharCode(event.keyCode)
Ok. But In Firfox Gecko It doesn't work. I use bellow code and I'm happy with it :)
[somelement].onkeypress = function(e){ var singleChar=e.key || String.fromCharCode(e.keyCode); console.log(singleChar); }