Hi,

That's possible, see here a example for when i press on the enter (=>
keycode == 13), it will search on Google.

function onTextBoxKeyPress() {
  // When the enter key is pressed, the action depends on if this
gadget is
  if (event.keyCode == 13) {
        doSearch();
  }
}

function doSearch() {
...
}


Check the Google Desktop Tip from Gadget Developer Bijoy Thangaraj.
http://googledesktopapis.blogspot.com/2008/03/tip-keycode-quick-reference.html

Kind Regards,
Stefan Van Damme (aka Stefan vd)
Gadget Developer

On 5 aug, 22:34, olmeca <[email protected]> wrote:
> hi,
> i'm a new gadget developer, I'm using google desktop gadgets on ubuntu
> ( hardy). My question is: is there any way to control gadgets by using
> keyboard, I mean i don't want to use mouse at all. basically i need:
> - select gadgets from the list( like ctrl+tab on firefox, it selects
> next tab)
> - navigate on gadget content : for example selecting list items by
> using arrow keys
>
> in fact my aim is to control my gadgets from my remote control device,
> for example while watching a movie i would like to press a key on
> remote control to make a gadget visible/invisible etc.
> any idea?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
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