Gtk.Widget.GrabDefault Method
Causes widget to become the default widget.

Syntax

public void GrabDefault ()

Remarks

The default widget is activated when the user presses Enter in a window. Default widgets must be activatable, that is, Widget.Activate should affect them. The widgets must have the WidgetFlags.CanDefault flag set; typically you have to set this flag yourself by calling Widget.CanDefault.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)