just a a side note - IMO you should never use keypress. use key down
instead. And if you want to find special chars, the best way is to listen to
their combination.
http://jsfiddle.net/ariehg/zZKr2/

todo -  another bug to file (later today) - it seems event.key has many
bugs. doesn't recognize shift either.

On Fri, Dec 3, 2010 at 8:05 PM, xtof <[email protected]> wrote:

> $('someinputfield').addEvent("keypress",function(event)
> { alert(event.key); });
>



-- 
Arieh Glazer
אריה גלזר
052-5348-561
http://www.arieh.co.il
http://www.link-wd.co.il

Reply via email to