a11y menu: Add "All Accessibility Settings" entry

Unlike other top bar menus, the accessibility menu doesn't provide
quick access to the corresponding settings. It's still useful, given
that not all settings are exposed in the menu, so add a settings entry.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6058

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2615>
This commit is contained in:
sunflowerskater 2023-01-13 14:29:13 -03:00 committed by Marge Bot
parent 2d00320a4b
commit f1c75c28fb

View File

@ -74,6 +74,10 @@ class ATIndicator extends PanelMenu.Button {
let mouseKeys = this._buildItem(_("Mouse Keys"), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
this.menu.addMenuItem(mouseKeys);
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this.menu.addSettingsAction(_('Accessibility Settings'),
'gnome-universal-access-panel.desktop');
this._syncMenuVisibility();
}