office-gobmx/accessibility
Michael Weghorn 97c9b0cced tdf#112661 tdf#112662 a11y: Fix toggling button via a11y action
`PushButton::Click does not` toggle a `PushButton`
that is a toggle button. Therefore, call
`PushButton::Check` and `PushButton::Toggle` instead
when the acessible "press" action is performed on
a toggle button, which makes this work as expected.

The same is already done in the UITest code, see
`ButtonUIObject::execute`.

The originally rerported issue in tdf#112661 and
tdf#112662 was that there was no action available
for the "Templates" and "Recent Documents" toggle
buttons in the start center via the NSAccessibility
API on macOS at all. By now, the "press" action was
available, but performing the action (e.g. using
the Ctrl+CapsLock+Space keyboard shortcut for
VoiceOver) didn't have any effect.
The same was true when performing the action via
Accerciser using the AT-SPI Action interface when
using the qt6 VCL plugin on Linux.

With this change in place, toggling between
showing the templates and the recently used
documents in the start center works using that
action, just as it does when clicking on one
of the toggle buttons in the UI using the mouse.

For gtk3, which is using native GtkToggleButtons,
this was already working without this change in place.

Change-Id: Ie3f02ec914239e0718ca1bfb4ba701f0831bb16a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158807
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-11-02 15:54:24 +01:00
..
inc a11y: Don't throw exception on valid list box entry action index 2023-10-23 20:35:52 +02:00
source tdf#112661 tdf#112662 a11y: Fix toggling button via a11y action 2023-11-02 15:54:24 +01:00
AllLangMoTarget_acc.mk
IwyuFilter_accessibility.yaml tdf#42949 Fix new IWYU warnings in directories [ab]* 2020-11-05 14:57:25 +01:00
Library_acc.mk Accessibility for IconView 2022-06-09 17:49:16 +02:00
Makefile
Module_accessibility.mk
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00

Accessibility Support for LibreOffice

Provides accessible components for LibreOffice