Gtk.MenuShell.prototype.get_selected_item

function get_selected_item():Gtk.Widget {
    // Gjs wrapper for gtk_menu_shell_get_selected_item()
}

Gets the currently selected item.

Since 3.0

Returns

the currently selected item