Added ctrl+w for closing XML FILTER SETTING tool in DRAW

Change-Id: I37cee7027f674003ad4a600a4a36fc1a9eec2dc3
This commit is contained in:
Gokul
2012-07-10 14:04:22 +03:00
committed by Miklos Vajna
parent 0234b73de2
commit 28d3e647ad

View File

@@ -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;