[Gtk-sharp-list] Button Focus

Chris Wilson blixtra at gmail.com
Thu Apr 13 07:11:17 EDT 2006


I think you could connect a handler to the KeyPressEvent on each field
and check if the key pressed is Gdk.Key.Enter. In the
KeyPressEventHandler you can then call the Buttons Clicked handler.

Should work,
Chris

On 4/13/06, Graham Oneale <graham at resonline.com.au> wrote:
>
>
>
> Hi Guys,
>
>
>
> I have a simple gtk window with a set of labels and entry boxes (a simple
> user form) with a button at the bottom.
>
>
>
> How can I make that button the default button (and it triggers the
> ButtonReleaseEvent) when enter is pressed on any of the entry fields?
>
>
>
> Graham O'Neale
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>


More information about the Gtk-sharp-list mailing list