summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC├ędric Bosdonnat <cedric.bosdonnat@free.fr>2013-01-28 18:50:39 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-01-30 08:34:46 +0000
commit14944defc38d3f515a9bd4e94f0d99f93e931aeb (patch)
tree02af399fd7a6b5bfc6c7b1c9f1e15be24f2ac881
parent0bf978f138728de6d20fc76f671c6b353565eb0b (diff)
Template Manager: focus in search edit when clicking search action
Change-Id: I91fa8463442d842ef9929a87fb22e5e1a0a869b5 Reviewed-on: https://gerrit.libreoffice.org/1916 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
-rw-r--r--sfx2/source/doc/templatedlg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 908fca9fe443..bf51e374f35a 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -963,6 +963,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())