On 05/10/06, Rich Manalang <[EMAIL PROTECTED]> wrote: > What's the best way to capture modifier key events with Jquery (i.e., > <ctrl><1>)? > > Rich
This is what I do (in my numeric plugin) $("#myinput").keypress( function(e) { var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; if(e.ctrlKey && key == 49) { alert("ctrl + 1 pressed"); } } ) _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/