diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-03-03 11:16:20 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@noe.suse.cz> | 2011-03-03 22:55:40 +0100 |
commit | 8bd88e63cea0a338b7bd5478d11d3328615056fa (patch) | |
tree | d40184b53fb9420cbdbbe7ca7579e27e79ba5200 /svx | |
parent | ba1ccb676f64978c27c5cdc3d7efaf899e9da7d2 (diff) |
findbar: Make Escape the only key to return back to the document.
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 230f9af876..79f8145bc4 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -132,12 +132,10 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) case EVENT_KEYINPUT: { const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent(); - sal_Bool bCtrl = pKeyEvent->GetKeyCode().IsMod1(); - sal_Bool bAlt = pKeyEvent->GetKeyCode().IsMod2(); sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift(); sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode(); - if ( (bCtrl && bAlt && KEY_F == nCode) || KEY_ESCAPE == nCode ) + if ( KEY_ESCAPE == nCode ) { nRet = 1; GrabFocusToDocument(); |