SilverStray
Programmer
Hi,
This kinda puzzles me, because when I try to capture the event.keyCode for a small letter 'a', it gives me the value of 65 which is for a capital 'A'. Why does Javascript seem to convert the keys I press into uppercase?
Similarly, I want to capture the keyCode for a dash ('-') and the event.keyCode equivalent it gave me was 189, when it's supposed to be 150. Probably because Javascript turned it to uppercase..but then again...why?
I am doing this because I want to write on a separate textbox any key that has been keypressed.
I hope somebody out there can help me with this.
Thanks in advance!
J. Echavez
This kinda puzzles me, because when I try to capture the event.keyCode for a small letter 'a', it gives me the value of 65 which is for a capital 'A'. Why does Javascript seem to convert the keys I press into uppercase?
Similarly, I want to capture the keyCode for a dash ('-') and the event.keyCode equivalent it gave me was 189, when it's supposed to be 150. Probably because Javascript turned it to uppercase..but then again...why?
I am doing this because I want to write on a separate textbox any key that has been keypressed.
I hope somebody out there can help me with this.
Thanks in advance!
J. Echavez