[Libreoffice-commits] .: svx/source

Michael Meeks michael at kemper.freedesktop.org
Mon Feb 27 07:58:05 PST 2012


 svx/source/tbxctrls/tbunosearchcontrollers.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d281971d62cc52c496487933ec699605f1a9b209
Author: Cameron Paul <cpaul37 at 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());
 


More information about the Libreoffice-commits mailing list