diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2023-04-14 17:22:57 +0300 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-04-15 05:38:12 +0200 |
commit | 0dc23570a033b69dfcaec64de18c3c0bbd2ad151 (patch) | |
tree | 224b61f7cf7a5e3b6d7757e665bddb1f89fd39fb /svtools | |
parent | 734d10ed3612d75edcee145475ddd0b0165efeac (diff) |
a11y: Report focusable and focused state for ValueSetItem
With this in place, Orca now also announces the selected
color when moving focus in the list of available colors
in the Writer toolbar font color popup
when using the qt6 VCL plugin.
Change-Id: I3f14047fe721c4a2bc0c6acb2d32f185d0eed204
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150418
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueacc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 9e496f6adcc8..1ba2c79dbbab 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -210,15 +210,15 @@ sal_Int64 SAL_CALL ValueItemAcc::getAccessibleStateSet() if ( !mbIsTransientChildrenDisabled ) nStateSet |= accessibility::AccessibleStateType::TRANSIENT; - // SELECTABLE nStateSet |= accessibility::AccessibleStateType::SELECTABLE; - // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSABLE ); + nStateSet |= accessibility::AccessibleStateType::FOCUSABLE; - // SELECTED if( mpParent->mrParent.GetSelectedItemId() == mpParent->mnId ) { + nStateSet |= accessibility::AccessibleStateType::SELECTED; - // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSED ); + if (mpParent->mrParent.HasChildFocus()) + nStateSet |= accessibility::AccessibleStateType::FOCUSED; } } |