Hi,

Does anyone have any ideas on how to capture (any) key events in a
page loading a V3 GMap (especially when the current focus is on a map
element / overlay)? I've tried all of the "conventional" methods
(using the Mootools JavaScript library), either by

$('map').addEvent('keydown', function(event){
        alert(event.key + ' - ' + event.code);
    });

("map" being my GMap div's ID), or by

$(document.body).addEvent('keydown', function(event){
        alert(event.key + ' - ' + event.code);
    });

but unfortunately, nothing works...! I can capture mouse events with
the above code (of course, changing "keydown" with "click", for
example), but no keyboard events!

As far as I see, there's no native Map API event for keys, either.
So... anyone?

Thanks!

--

You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.


Reply via email to