Gtk.Widget.prototype.set_receives_default

function set_receives_default(receives_default:Boolean):void {
    // Gjs wrapper for gtk_widget_set_receives_default()
}

Specifies whether widget will be treated as the default widget within its toplevel when it has the focus, even if another widget is the default.

See Gtk.Widget.prototype.grab_default for details about the meaning of "default".

Since 2.18

receives_default

whether or not widget can be a default widget.