summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-04-14 17:33:13 +0300
committerMichael Weghorn <m.weghorn@posteo.de>2023-04-15 05:38:19 +0200
commit86bbf9a4eca0e96b282f656c7dc0cf11ff80c9f9 (patch)
tree103a6bd2f107969000264b90c604d9e56e837c19
parent0dc23570a033b69dfcaec64de18c3c0bbd2ad151 (diff)
a11y: Report focusable and focused state for ThumbnailViewItem
Basically the same as Change-Id I3f14047fe721c4a2bc0c6acb2d32f185d0eed204 "a11y: Report focusable and focused state for ValueSetItem", but for `ThumbnailViewItemAcc`. Makes Orca with the qt6 VCL plugin announce the selected/focused item in the recent documents view in the LO start center. Change-Id: I8ab259ce6649904b42367ac30e4efbd6ab62cb6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150419 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--sfx2/source/control/thumbnailviewacc.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx
index f157b155cddd..f4ec85e5a89a 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -677,15 +677,14 @@ sal_Int64 SAL_CALL ThumbnailViewItemAcc::getAccessibleStateSet()
if ( !mbIsTransientChildrenDisabled )
nStateSet |= accessibility::AccessibleStateType::TRANSIENT;
- // SELECTABLE
nStateSet |= accessibility::AccessibleStateType::SELECTABLE;
- // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSABLE );
+ nStateSet |= accessibility::AccessibleStateType::FOCUSABLE;
- // SELECTED
if( mpParent->isSelected() )
{
nStateSet |= accessibility::AccessibleStateType::SELECTED;
- // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSED );
+ if (mpParent->mrParent.HasChildFocus())
+ nStateSet |= accessibility::AccessibleStateType::FOCUSED;
}
}