[Glade-users] How to change key event in glade

Tristan Van Berkom tristan.van.berkom at gmail.com
Sun Oct 24 22:55:51 EDT 2010


By Text Box you mean an editable GtkEntry ?

I'm not sure if it can be default behavior for an entry to
pass focus to the next widget when ENTER is pressed.

However you can catch it's activate signal and call
gtk_widget_grab_focus() on the next widget you want focused.

Or more generically connect the same handler to all the entries
and call gtk_container_get_focus_chain[0] to generically do the
same with the container's focus chain (Note GtkBuilder doesnt
let us set up the focus change, however its a desired enhancement).

Cheers,
          -Tristan

[0] http://library.gnome.org/devel/gtk/2.90/GtkContainer.html#gtk-container-get-focus-chain

On Sun, Oct 24, 2010 at 10:09 PM, Balakrishnan.V <balakpm101 at gmail.com> wrote:
> Hi to everyone.
>
> I want to move the cursor from one text box to another with help of enter
> key
> instead of tab key.
>
> How can i do it?
>
> Need suggestion to perform that.
>
> --
> With Regards,
> V. Balakrishnan.
>
> Kanchi Linux User Group Rocks !!!
>
> http://kanchilug.wordpress.com
>
> You can see my activities at
>
> http://gnubala.wordpress.com/
>
>
>
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
>


More information about the Glade-users mailing list