sfx2/source/control/thumbnailviewacc.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 86bbf9a4eca0e96b282f656c7dc0cf11ff80c9f9 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri Apr 14 17:33:13 2023 +0300 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Sat Apr 15 05:38:19 2023 +0200 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.wegh...@posteo.de> 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; } }