I am trying to have a input text field which should allow numbers and few special characters like forward slash(/). So I am handling this through key codes from keydown event.
But I am facing a strange issue. As per the ASCII table, the key codes for numbers 0 to 9 is 48 to 57. But if the same numbers pressed from the number pad in keyboard then keyCode gives a different value. The ASCII code for 0 to 9 in num pad starts from 96 to 105. But this range conflicts with small caps alphabets.
So I would like to know is there any way to differentiate if number keys pressed from the regular number keys and from num pad.