summaryrefslogtreecommitdiff
path: root/include/sfx2/templatedlg.hxx
diff options
context:
space:
mode:
authorTibor Móger <hapcyhun@gmail.com>2016-12-07 15:41:57 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2016-12-20 20:22:39 +0000
commit86519381cd6c7df26087461680f5467aacdc89fc (patch)
treef291fac8122eec31d6c1eb90d50e85f2d97d367f /include/sfx2/templatedlg.hxx
parent574524604cfd73c25f3a95d2d09205e8e665082a (diff)
tdf#94576 handle esc keypress on templatemanagerdialog
SfxTemplateManagerDlg now overrides behaviour of ModalDialog on EventNotify by checking if the pressed key was esc and the searchFilter is not empty and it was focused. In this case instead of letting ModalDialog close the modal it clears the searchFilter Change-Id: I90d91a3b152f68b6c8780963d1b95258d9ccf23a Reviewed-on: https://gerrit.libreoffice.org/31736 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'include/sfx2/templatedlg.hxx')
-rw-r--r--include/sfx2/templatedlg.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index ecf75d61f7ca..c1302571972e 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -49,6 +49,7 @@ public:
virtual ~SfxTemplateManagerDlg() override;
virtual void dispose() override;
virtual short Execute() override;
+ virtual bool EventNotify( NotifyEvent& rNEvt ) override;
void setDocumentModel (const css::uno::Reference<css::frame::XModel> &rModel);