On Apr 29, 12:00 pm, parky128 <[email protected]> wrote:
> I used the solution that Andrew posted in his previous post which can
> be found athttp://www.acleach.me.uk/gmaps/keyboardhandler.htm


Ok, so here we go again. My example is here

http://www.wolfpil.de/keyboardhandler.html


The map loses focus when an overlay (marker) is displayed and when the
overlay (marker) is removed. Three possibilities to re-enable the key
handler to get the focus back to the map (you have already mentioned
the first two):

1. Click off the map area, e.g. in the white space below, and click
back on the map again.

2. Opening an InfoWindow and then closing it using the 'x' button in
the window.

3. Click on the link 'Use keyboard in map'.


Clicking on the button that calls the same function has no effect. To
call the function setKeys() that should bring the focus back to the
map from within another function of the script after the marker has
been overlayed and removed has no visible effect either.

If you replace the link

<a href="javascript:setKeys('map');"> with

<a href="" onclick="setKeys('map')">

then even clicking on the link doesn't change anything, i.e. the link
doesn't work any more. So the link only seems to work as it is now.

Entering

javascript:setKeys("map")

in the address bar and pressing return seems to take effect sometimes
but not always.

There is no way to detect which event is triggered by GEvent - if any.
So there is no way to detect if the map has lost focus or not. We
don't know what GEvent.trigger is doing.

I thought question was:

Is there any possibility to bring the focus back to the map after
displaying or removing an overlay - without any click or entering any
command in the address bar?

At the moment I don't know any...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to