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, w
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 wrote:
>
> I am currently following the image popup example from:
>
> http://yensdesign.com/2008/09/how-to-create-a-
2 matches
Mail list logo