Widget.hasDefault

bool hasDefault() nothrow

Determines whether widget is the current default widget within its toplevel. See gtk.widget.Widget.setCanDefault.

Returns

true if widget is the current default widget within

its toplevel, false otherwise