diff options
author | Joren De Cuyper <joren.libreoffice@telenet.be> | 2013-01-18 00:37:14 +0100 |
---|---|---|
committer | Radek Doulík <rodo@novell.com> | 2013-01-24 09:41:22 +0000 |
commit | 1b375d580fb32739cc3b6625400337fa7380cdab (patch) | |
tree | 2ec1171b29ef58d70438471de20d49260ce099cd | |
parent | c2a249f371eb8ac3bf70d92947efeb145566536b (diff) |
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@novell.com>
Tested-by: Radek Doulík <rodo@novell.com>
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index b643c7dcf83c..c964fceea2c3 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(); |