summaryrefslogtreecommitdiff
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
commit05806943d5dd4f68024df8a41b407383f0bfed45 (patch)
tree5253d3d89a4573af0b39dd04c0d0acd84411e6b3
parent09ea751f9b1ff4cde57e7d576b87dd23545a8d91 (diff)
findbar01: #i111840# set focus back to document when <Esc> key is used in findbar text field
-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 b3048bd1fe..407ef59149 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 )