[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - svx/source

Justin Luth justin_luth at sil.org
Thu Jan 21 00:17:50 PST 2016


 svx/source/accessibility/AccessibleShape.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 13bb526930749a2f45592c53fedb13f9508212fc
Author: Justin Luth <justin_luth at sil.org>
Date:   Tue Dec 29 16:15:56 2015 +0300

    tdf#96685 - set initial focus of accessible editeng objects
    
    signalIMDeleteSurrounding searches for the focused accessible object.
    Since newly created accessible objects were not inheriting
    the focus setting of their peer, the search returned nothing
    until some event triggered the focus to be adjusted.
    
    Change-Id: I92f980b4bbe741d8ce9196165eff51059c807a2b
    Reviewed-on: https://gerrit.libreoffice.org/21002
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Justin Luth <justin_luth at sil.org>
    (cherry picked from commit 3b14cdf7386f41395d1b089c3b9dde7d4429cf38)
    Reviewed-on: https://gerrit.libreoffice.org/21562
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx
index 310ef49..f38852e 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -181,6 +181,8 @@ void AccessibleShape::Init()
                     ::std::unique_ptr<SvxEditSource> pEditSource( new SvxTextEditSource ( *pSdrObject, nullptr, *pView, *pWindow) );
                     mpText = new AccessibleTextHelper( std::move(pEditSource) );
                 }
+                if( pWindow->HasFocus() )
+                    mpText->SetFocus();
 
                 if( bOwnParaObj )
                     delete pOutlinerParaObject;


More information about the Libreoffice-commits mailing list