svx/source/tbxctrls/tbunosearchcontrollers.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit d281971d62cc52c496487933ec699605f1a9b209 Author: Cameron Paul <cpau...@gmail.com> Date: Mon Feb 27 15:56:03 2012 +0000 fdo#46438 - add ctrl-g / ctrl-shift-g binding for find again fwd/back diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 16d4d55..c974a22 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()); _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits