[Libreoffice-commits] .: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jan 24 01:41:42 PST 2013
svx/source/tbxctrls/tbunosearchcontrollers.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1b375d580fb32739cc3b6625400337fa7380cdab
Author: Joren De Cuyper <joren.libreoffice at telenet.be>
Date: Fri Jan 18 00:37:14 2013 +0100
fdo#59101 - [Feature Request] Make Find hotkey (Ctrl+F) a toggle command
Change-Id: I8cf518a18e4846f9e687d05c7f7c0eb774abba6f
Reviewed-on: https://gerrit.libreoffice.org/1751
Reviewed-by: Radek DoulÃk <rodo at novell.com>
Tested-by: Radek DoulÃk <rodo at novell.com>
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index b643c7d..c964fce 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -138,7 +138,7 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt )
sal_Bool bMod1 = pKeyEvent->GetKeyCode().IsMod1();
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
- if ( KEY_ESCAPE == nCode )
+ if ( KEY_ESCAPE == nCode || (bMod1 && (KEY_F == nCode)) )
{
nRet = 1;
GrabFocusToDocument();
More information about the Libreoffice-commits
mailing list