Gtk.Entry.prototype.set_activates_default
function set_activates_default(setting:Boolean):void {
// Gjs wrapper for gtk_entry_set_activates_default()
}If setting is true, pressing Enter in the entry will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons.
(For experts: if setting is true, the entry calls Gtk.activate_default on the window containing the entry, in the default handler for the Gtk.activate signal.)
- setting
true to activate window's default widget on Enter keypress