On 06/10/06, Yehuda Katz <[EMAIL PROTECTED]> wrote: > They keyup event comes to mind. You might need to bind the click event too > (in case they paste via the mouse). > > -- Yehuda
I've thought about keyup, but it fires after keypress (it goes in the order: keydown, keypress, keyup). I use 'var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;' (rather than checking e.keyCode first) as I want to detect upper case letters on keypress. I've also updated my keypress test page (to detect keyup/keydown as well). http://www.texotela.co.uk/keypress.php keyup and keydown are not case sensitive, while keypress is. In Firefox e.charCode is 0 for keyup and keydown, while e.keyCode is 0 for keypress. IE and Opera never use e.charCode. e.which is the same in Opera and Firefox (and is not supported by IE). Just type some letters in the text box and you will see what I mean. At least e.keyCode works the same in keyup/down in all three browsers. So each browser behaves differently. How does Safari or Konqueror work with key events? In this instance, you want the other browsers to have something IE does - the onpaste event. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/