diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-01-28 18:50:39 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-01-28 18:51:34 +0100 |
commit | 4651402a5399e00f62311bb3fe545413b0818a2d (patch) | |
tree | c6f8b0cba78eac64b623e070223cd56af2ac1fcb /sfx2 | |
parent | 2064d3df551b651479c0602e197674d4efede15f (diff) |
Template Manager: focus in search edit when clicking search action
Diffstat (limited to 'sfx2')
-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()) |