summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}