[mapguide-users] can IE7 capture key presses?

J Manafi jonathan.manafi at cctechnol.com
Mon Jul 7 11:17:27 EDT 2008


I have some javascript set to capture key combinations, like shift+a or
ctrl+d, and then I set my function as the callback to the document onkeydown
events, like so:

document.onkeydown = myFunction;

parent.parent.mapFrame.onkeydown = myFunction;

In IE, if I open my taskPane script and do any work in there, I can capture
my key presses. However, if I open the context menu on the map and, let's
say, choose the selection icon, I no longer have the ability to capture keys
unless I click back in the taskPane. This works fine in firefox.

I'm  not entirely sure of all of the differences between firefox and IE, but
I was wondering if someone knew perhaps of a way to gain access to mapFrame
javascript events?

Thanks,

Jonathan
-- 
View this message in context: http://www.nabble.com/can-IE7-capture-key-presses--tp18319148p18319148.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080707/bd787fc5/attachment.html


More information about the mapguide-users mailing list