[Libreoffice-commits] .: filter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Jul 13 00:39:23 PDT 2012


 filter/source/xsltdialog/xmlfiltersettingsdialog.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 28d3e647ada2876b7463993d305fa2e8c44dce48
Author: Gokul <gokul.cdac at gmail.com>
Date:   Tue Jul 10 14:04:22 2012 +0300

    Added ctrl+w for closing XML FILTER SETTING tool in DRAW
    
    Change-Id: I37cee7027f674003ad4a600a4a36fc1a9eec2dc3

diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index 252c419..2e9e558 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -1046,8 +1046,9 @@ long XMLFilterSettingsDialog::Notify( NotifyEvent& rNEvt )
             const KeyEvent* pKEvt = rNEvt.GetKeyEvent();
             KeyCode         aKeyCode = pKEvt->GetKeyCode();
             sal_uInt16          nKeyCode = aKeyCode.GetCode();
+            sal_Bool        bMod1 =   pKEvt->GetKeyCode().IsMod1();
 
-            if( nKeyCode == KEY_ESCAPE )
+            if( nKeyCode == KEY_ESCAPE || (bMod1 && (nKeyCode == KEY_W)))
             {
                 Close();
                 return sal_True;


More information about the Libreoffice-commits mailing list