Detecting Non-Character Key Strokes
I want to determine if a keystroke in a textbox was a character (a, X 3, &, etc) or not (SHIFT, CAPS, PrtScrn).....I am using String.fromCharCode(e.keyCode) for other things and I tried using it here in different ways (because these special keys always return a blank value with a string length of 1, but not a space??) but I can't get it at all.....experts?
I've switched careers...
I'm NO LONGER a scientist,
but now a web developer...
Catch the keypress event- keyup and down return a keyCode for any key, keypress only returns values for printable keys-
keyCode in IE before version 9, charCode in the others
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)