[Libreoffice-commits] .: Branch 'libreoffice-4-0' - sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 30 00:35:07 PST 2013


 sfx2/source/doc/templatedlg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 14944defc38d3f515a9bd4e94f0d99f93e931aeb
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date:   Mon Jan 28 18:50:39 2013 +0100

    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 at suse.cz>
    Tested-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 908fca9..bf51e37 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())


More information about the Libreoffice-commits mailing list