diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx index 252c4194bf84..2e9e558cbfb9 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;