[jQuery] ThickBox - closing without using the mouse?
A more browser-compatible way to check for the pressed key code is:
if (!e) var e = window.event;
keycode = e.keyCode || e.which;
That might work for you, Jim.
m.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Jim Davis
Sent: Tuesday, September 12, 2006 7:51 PM
To: jQuery Discussion.
Subject: Re: [jQuery] ThickBox - closing without using the mouse?
Thanks. I added the code you suggested but couldn't get it to work. It
didn't break anything, but esc didn't close the page. I'll just wait for
2.1.
Jim