diff options
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index b756111bc87b..d3721ab8c6e1 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -964,6 +964,8 @@ void SfxTemplateManagerDlg::OnTemplateSearch () mpSearchEdit->Show(!bVisible); mpSearchEdit->SetText(OUString()); + if (!bVisible) + mpSearchEdit->GrabFocus(); // display all templates if we hide the search bar if (bVisible && mpCurView->isOverlayVisible()) |