Monday, November 9, 2009

Re: Trap keyboard press whilst clicking on map

See here:
http://maps.forum.nu/temp/gm_control_click.html

Click a marker with/without CTRL.

--
Marcelo - http://maps.forum.nu
--

On Nov 9, 1:29 pm, parky128 <rob.parker...@googlemail.com> wrote:
> Hi there,
>
> Has anyone had experience with trapping any key presses on a users
> keyboard whilst they click on the map?
>
> I'd like to be able to trap whether or not the Ctrl is held down
> whilst the user clicks on the map so I can perform a certain function.
>
> I am familiar with using the GEvent classes to listen for types of
> click on a map, but cant see anything in the objects passed into the
> delegate functions that would help me.
>
> Also, does anyone know whether there is support for a middle mouse
> button click event listener in the api? I can trap the event in a
> normal click handler but then that doesnt distinguish between a left
> or middle click
>
> Thanks,
> Rob

--

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate