Choopernickel
06-12-2003, 06:20 PM
I'm trying to use a keyUp validator to only allow numeric input (including a single dot) while still allowing tab, enter, etc. to pass through.
I've noticed (in IE6, the target browser-- intranet) that the keyCode is sometimes different (but not always) depending on whether caps lock is on, shift is held, etc. Also, there is an overlap between the numPad and the start of the lowercase alphabet's keyCodes.
Using keyDown doesn't work either.
Anybody run into this issue before? If so, how'd you deal with it?
(I searched on keyCode and didn't find an answer in the top 50 or so results.)
I've noticed (in IE6, the target browser-- intranet) that the keyCode is sometimes different (but not always) depending on whether caps lock is on, shift is held, etc. Also, there is an overlap between the numPad and the start of the lowercase alphabet's keyCodes.
Using keyDown doesn't work either.
Anybody run into this issue before? If so, how'd you deal with it?
(I searched on keyCode and didn't find an answer in the top 50 or so results.)