You don't have to do anything special. Just add the input fields
(edit, radiobutton, checkbox, ...) onto your view and Google Desktop
will do the rest. You will need the latest Google Desktop to see this.

Benjamin

On Feb 26, 5:55 pm, Eric Lin <[email protected]> wrote:
> Hi,
> how do we create a tab navigation in desktop gadget?
>
> thanks~
>
> On Wed, Feb 25, 2009 at 8:54 PM, Benjamin [API Guru] <
>
> [email protected]> wrote:
>
> > Tab navigation is now supported by Google Desktop automatically. You
> > don't have to add any special code for it anymore.
>
> > Benjamin
>
> > On Feb 25, 10:31 am, prageeth4msl <[email protected]> wrote:
> > > Hi,
> > > I faced the same situation when I wanted the tabbing navigation in my
> > > gadget too. Try putting the contents of the onkeypress() in
> > > 'onkeydown' event.
> > > For example -
> > >   .xml :
> > >       <edit height="18" name="txtAddSomething" width="100" x="78"
> > > y="148" onkeydown="onKeyDown(txtAddAnother);"/>
>
> > >   .js :
>
> > >         function onKeyDown(control_to_be_focused) {
> > >                 if (event.keyCode === 9 ) {
> > >                         control_to_be_focused.focus();
> > >                         event.returnvalue = false;
> > >                 }
> > >         }
>
> > > Hope this might help, because it took some time for me to figure out
> > > the weird behavior when using the tab.
>
> > > Thanks,
> > > Prageeth
>
> > > On Jan 16, 8:25 am, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > Here is how I am calling these functions:
>
> > > > <edit height="16" name="txtwhat" width="255" x="27" y="106"
> > > > onfocusin="clearWhatData()"
> > > >     onfocusout="resetWhatData()" onkeypress="onkeypress1()"
> > > >     color="#747678" font="Arial" size="9" background="#FFFCD5"
> > > >     value="category, business name, keyword or phone number."
> > > >    />
> > > > <edit height="16" name="txtwhere" width="255" x="27" y="156"
> > > > onfocusin="clearWhereData()"
> > > >     onfocusout="resetWhereData()" onkeypress="onkeypress2()"
> > > >     color="#747678" font="Arial" size="9" background="#FFFCD5"
> > > >     value="city, state, address, ZIP code or landmark."/>
>
> > > > Thanks! I hope somebody can help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" 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-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to