[jQuery] Re: Handling key event in Chrome or Safari during a popup

2009-06-10 Thread Thierry
Apparently it's the keypress event which is not registered through Firefox, using keyup works well across all browsers, thanks for the sample code. The fixed version is: $(document).keyup(function(e) { if (e.keyCode == 27 popupStatus == 1) { disablePopup(); } }); On Jun 9, 5:10 pm,

[jQuery] Re: Handling key event in Chrome or Safari during a popup

2009-06-09 Thread waseem sabjee
check this link $(#mytextbox).keyup(function(event){ if (event.keyCode == 27) { $(this).attr({ value:Escape }); } }); On Tue, Jun 9, 2009 at 8:59 PM, Thierry lamthie...@gmail.com wrote: I am currently following the image popup example from: