Gtk.MenuShell.prototype.get_take_focus

function get_take_focus():Boolean {
    // Gjs wrapper for gtk_menu_shell_get_take_focus()
}

Returns true if the menu shell will take the keyboard focus on popup.

Since 2.8

Returns

true if the menu shell will take the keyboard focus on popup.