diff options
author | Justin Luth <justin_luth@sil.org> | 2015-12-29 16:15:56 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2016-01-18 04:31:17 +0000 |
commit | 3b14cdf7386f41395d1b089c3b9dde7d4429cf38 (patch) | |
tree | 9ed335ed07c604fe6d90b60826b885bc6a0758da | |
parent | d1bd4465be649a4078c3a2f85a64c8a6300dd65d (diff) |
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@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r-- | svx/source/accessibility/AccessibleShape.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx index 67f8800ed8e0..a352e2b88e68 100644 --- a/svx/source/accessibility/AccessibleShape.cxx +++ b/svx/source/accessibility/AccessibleShape.cxx @@ -179,6 +179,8 @@ void AccessibleShape::Init() // non-empty text -> use full-fledged edit source right away mpText = new AccessibleTextHelper( o3tl::make_unique<SvxTextEditSource >(*pSdrObject, nullptr, *pView, *pWindow) ); } + if( pWindow->HasFocus() ) + mpText->SetFocus(); if( bOwnParaObj ) delete pOutlinerParaObject; |