diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-04-18 11:40:35 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-04-20 15:28:14 +0200 |
commit | b9f51395bd763d01c8ac2b957ac047ff07fbcdfc (patch) | |
tree | f66885a6f146c3371372ff19597d5877e36f2de8 | |
parent | e5bc241d197ed946fc4a2ba4901e25c7f82cab85 (diff) |
tdf#159910 sw a11y: Set a11y name for Navigator combobox
Set a11y name for this combobox in the Navigator to
"Navigate By".
This is in line with the tooltip shown when hovering over
the combobox, which is set for the combobox's parent,
the panel.
This makes Orca with the qt6 VCL plugin now announce
the a11y name of the combobox with the corresponding
role, rather than the panel
("Navigator, panel, Navigate By, combobox" instead of
"Navigator, panel, Navigate by, panel, combobox").
For gtk3, Orca still doesn't announce the combobox or
it's a11y name set in the .ui file, but still just says
"Toggle button, not pressed", which will have to be
addressed separately.
This is because while there is a combobox with accessible
name "Navigate By" in the AT-SPI tree now, the object
that gets focus is a toggle button that doesn't have
a name set for the gtk3 VCL plugin, which will be
addressed in a separate commit.
Change-Id: Id6b615f033c78d318611b520d49332714fa40eb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166246
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r-- | sw/uiconfig/swriter/ui/navigatorpanel.ui | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/uiconfig/swriter/ui/navigatorpanel.ui b/sw/uiconfig/swriter/ui/navigatorpanel.ui index 18599af36c90..e12dc94e3f47 100644 --- a/sw/uiconfig/swriter/ui/navigatorpanel.ui +++ b/sw/uiconfig/swriter/ui/navigatorpanel.ui @@ -283,6 +283,11 @@ <attribute name="pixbuf">2</attribute> </attributes> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="NavElementWidget-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="navigatorpanel|accessible_name|navigateby">Navigate By</property> + </object> + </child> </object> </child> </object> |