*Additionally, keyboard handling is on by default on all devices.*
http://code.google.com/apis/maps/documentation/javascript/controls.html#DefaultControls


Map options allow to enable/disable the keyboardShortcuts:**
http://code.google.com/apis/maps/documentation/javascript/reference.html#MapOptions
*

*Here how to handle the keyboard in javascript,
http://www.javascriptkit.com/javatutors/javascriptkey.shtml

I think you can add the handler using the Dom directly to the map object,
with a sintax similar to this:

map.onKeyDown = handleKeyDown
map.onKeyUp = handleKeyUp

function handleKeyDown( event ){
     switch( event.keyCode ){
       case 'h':
          // show some help window for example
      break;
      ....
}

function handleKeyUp( event ){
   // stop the handling...
}


Cheers,
Federico



2010/8/6 Dmitri <[email protected]>

> Hi Chad,
>
> You've mentioned GKeyboardHandler doesn't exist in v3 - although it
> wouldn't be hard to implement.
>
> Could you show how would you do that, please? I am struggling to find
> the answer for this.
>
> Thanks
>
> Dmitri
>
>
>
> On Jul 23, 1:10 pm, Chad Killingsworth
> <[email protected]> wrote:
> > GKeyboardHandler doesn't exist in v3 - although it wouldn't be hard to
> > implement. You would need to register a keyup event and call the
> > appropriate map methods.
> >
> > The v3 equivalent of GLargeMapControl is the NavigationControl with a
> > style of ZOOM_PAN.
> >
> > Chad Killingsworth
> >
> > On Jul 21, 6:17 pm, Simone Isabela <[email protected]> wrote:
> >
> > > Hi all,
> >
> > > Someone know what is the equivalent in API v3 to GKeyboardHandler and
> > > GLargeMapControl that exists in V2?
> >
> > > Thanks,
> >
> > > Simone
>
> --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
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