/toolkit/test/

ion/atom+xml'/>
summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-04-16 19:02:30 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-04-17 08:07:17 +0200
commit0425b6eb47830b1fe630dc0128d5049f4b3e5582 (patch)
tree980ebd696562177070e139149b1d8e0d15e72e4a /winaccessibility
parentd304fdb3369235ff4916463687b5e625c7fa3650 (diff)
tdf#160695 wina11y: Send status change events for toolbar buttons
When the checked or indeterminate state of a toolbar button changes, forward the corresponding UNO a11y event as a corresponding MSAA event. For roles `AccessibleRole::PUSH_BUTTON` and `AccessibleRole::TOGGLE_BUTTON`, `AccObject::GetMSAAStateFromUNO` uses `STATE_SYSTEM_PRESSED` instead of `STATE_SYSTEM_CHECKED`, so also use `UnoMSAAEvent::STATE_PRESSED` for the event. It's unclear why sending of such events would generally be omitted for "special toolbar items" previously. The events can be used to implement announcement of toggled font attributes in NVDA, e.g. when the "Bold" button in the formatting toolbar is toggled via a keyboard shortcut, similar to how Orca does it (s. tdf#123864). Related NVDA issue for which I plan to submit a PR: [1] [1] https://github.com/nvaccess/nvda/issues/4248 Change-Id: Ic2846e338802c3cb7656de5b77e4df23bd5b0703 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166155 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>