I am facing a very strange problem with the Keydown() event.
I have a textbox on my page. When ever a key is down on the textbox, I am calling a javascript function to display the character.
Expand|Select|Wrap|Line Numbers
- function monitorKeys(event)
- {
- alert(event.keyCode); //This is displaying 219 for [ (opening square bracket)
- alert(String.fromCharCode(event.keyCode))// This is displaying a weird Unicode character
- }
I sincerely appreciate your help on this.