diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-05-21 18:43:06 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-05-21 19:28:19 +0200 |
commit | d37b1ca5f502454266ff5a75455d61776ee11bb4 (patch) | |
tree | c70a6db40a4773ff6e0e1ea4022a421df90aa4a7 /sw/source | |
parent | 2c2af2ebf8b2bed78286df4b4ffcbac556223ca8 (diff) |
uitest: sw: grab focus before using toggle button in navigator
otherwise the focus in on the document
since ada385f1cba427416c1e8517cb6a45b61ceff7b0
Change-Id: Ia8300fdceb4f50f89c6d90f238483a4c785163d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94647
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/uitest/uiobject.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/uitest/uiobject.cxx b/sw/source/uibase/uitest/uiobject.cxx index a0b8da9e9d97..6a55e42cf5ac 100644 --- a/sw/source/uibase/uitest/uiobject.cxx +++ b/sw/source/uibase/uitest/uiobject.cxx @@ -147,7 +147,10 @@ void SwNavigationPIUIObject::execute(const OUString& rAction, const StringMap& rParameters) { if (rAction == "ROOT") + { + mxSwNavigationPI->m_xContentTree->grab_focus(); mxSwNavigationPI->ToolBoxSelectHdl("root"); + } else WindowUIObject::execute(rAction, rParameters); } |