Gtk.Window.prototype.activate_focus

function activate_focus():Boolean {
    // Gjs wrapper for gtk_window_activate_focus()
}

Activates the current focused widget within the window.

Returns

true if a widget got activated.