diff options
author | Cameron Paul <cpaul37@gmail.com> | 2012-02-27 15:56:03 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-27 15:56:54 +0000 |
commit | d281971d62cc52c496487933ec699605f1a9b209 (patch) | |
tree | bbd42c0965c7eb9ed9d022916573302b5da3e2c0 /svx | |
parent | b55381672262f7d14a5b66ddd6a2dd1007ee8e3b (diff) |
fdo#46438 - add ctrl-g / ctrl-shift-g binding for find again fwd/back
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 16d4d55f4f59..c974a2236f22 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -133,6 +133,7 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) { const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent(); sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift(); + sal_Bool bMod1 = pKeyEvent->GetKeyCode().IsMod1(); sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode(); if ( KEY_ESCAPE == nCode ) @@ -156,7 +157,7 @@ long FindTextFieldControl::PreNotify( NotifyEvent& rNEvt ) } } - if ( KEY_RETURN == nCode ) + if ( KEY_RETURN == nCode || (bMod1 && (KEY_G == nCode)) ) { Remember_Impl(GetText()); |