summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorWu Yan <wuy@openoffice.org>2010-05-27 17:06:33 +0800
committerWu Yan <wuy@openoffice.org>2010-05-27 17:06:33 +0800
commit01c4626a910ec3b664abea6854ae656701a93e28 (patch)
tree9aae06b377db06ad3235f329acaa694fadeb20ed /svx/source
parentbe4dce34a76262b5ca28cf8048466f7931116f23 (diff)
findbar01: #i111840# set focus back to document when <Esc> key is used in findbar text field
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 1a050e742005..f4f03170a90f 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -134,7 +134,7 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift();
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
- if ( bCtrl && bAlt && KEY_F == nCode )
+ if ( (bCtrl && bAlt && KEY_F == nCode) || KEY_ESCAPE == nCode )
GrabFocusToDocument();
if ( KEY_RETURN == nCode )