On Nov 26, 12:20 pm, "Jack T." <[EMAIL PROTECTED]> wrote: > How can I add a custom event to a gmarker? What I see in the docs is, > the only userland control I have over markers are with mouseover and > click. I want to add <ctl><click>. How can I do that?
Recent browsers offer the boolean Event.ctrlKey, and Navigator offers the bitmask Event.modifiers. So you would handle the click event and test for the control key. See http://www.javascripter.net/faq/ctrl_alt.htm (among other references), which indicates that you may need to check for mousedown rather than click. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
