Gtk.Dialog.prototype.set_default_response

function set_default_response(response_id:Number):void {
    // Gjs wrapper for gtk_dialog_set_default_response()
}

Sets the last widget in the dialog's action area with the given response_id as the default widget for the dialog. Pressing "Enter" normally activates the default widget.

response_id

a response ID