From 4651402a5399e00f62311bb3fe545413b0818a2d Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Mon, 28 Jan 2013 18:50:39 +0100 Subject: Template Manager: focus in search edit when clicking search action --- sfx2/source/doc/templatedlg.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sfx2') 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()) -- cgit