svx/source/dialog/srchdlg.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 26e33cb1fc7024d04b68569f904ffd8583aef1fb
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Sat Aug 6 16:19:48 2022 -0800
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Sep 5 15:57:57 2022 +0200

    tdf#117173 make search label read by screen reader
    
    Change-Id: I3ced9f5f3637e8489d0512b48882724a5a51b577
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137913
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index b047ef27d1e7..4f2378881867 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -1360,6 +1360,9 @@ IMPL_LINK(SvxSearchDialog, CommandHdl_Impl, 
weld::Button&, rBtn, void)
         nModifyFlag = ModifyFlags::NONE;
         const SfxPoolItem* ppArgs[] = { pSearchItem.get(), nullptr };
         rBindings.ExecuteSynchron( FID_SEARCH_NOW, ppArgs );
+
+        // grabbing focus to the search combo box makes the search label read 
by the screen reader
+        m_xSearchLB->grab_focus();
     }
     else if ( &rBtn == m_xCloseBtn.get() )
     {

Reply via email to