diff options
author | Justin Luth <justin_luth@sil.org> | 2015-12-29 16:15:56 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-21 08:17:18 +0000 |
commit | 13bb526930749a2f45592c53fedb13f9508212fc (patch) | |
tree | b66b31f1a59cde2549382a6a51266d658363d136 | |
parent | 8c564a1fd313da29088bed6453c5e16876690d24 (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>
(cherry picked from commit 3b14cdf7386f41395d1b089c3b9dde7d4429cf38)
Reviewed-on: https://gerrit.libreoffice.org/21562
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-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 310ef4979533..f38852e6be16 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; |