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.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to