Check e.keyCode. For numbers it should be in range 48...57, for letters 
a...z in range 97...122 (for Shift-a..z also 97...122, so you need extra 
check for Shift key). Other way is to use onkeypress event - it will have 
proper codes for a...z and A...Z, but is more browser-specific even with 
Prototype.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/KLf-nUPpwHoJ.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to