On 14 April 2011 09:37, Amit Agarwal <[email protected]> wrote: > 'keypress' event works well in Chrome except for arrow keys. > > Any solution?
Yes. Use the keydown event instead. Use keypress for detecting text input and keydown/keyup for detecting general keystrokes. The following page is a very useful reference for JavaScript key events: http://unixpapa.com/js/key.html Tim -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
