[ooo-build-commit] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Sep 29 13:23:30 PDT 2010


 sc/source/ui/app/inputhdl.cxx |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 3b1933b66f8f4526146404baf5a6ba631ec35c55
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Sep 29 16:12:41 2010 -0400

    Ported autocorrect-accidental-caps-lock-sc.diff from ooo-build.

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 12a245a..1e71912 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2425,10 +2425,12 @@ void ScInputHandler::EnterHandler( BYTE nBlockMode )
             lcl_SelectionToEnd(pTableView);
         }
 
+        Window* pFrameWin = pActiveViewSh ? pActiveViewSh->GetFrameWin() : NULL;
+
         if (pTopView)
             pTopView->CompleteAutoCorrect();	// #59759# CompleteAutoCorrect fuer beide Views
         if (pTableView)
-            pTableView->CompleteAutoCorrect();
+            pTableView->CompleteAutoCorrect(pFrameWin);
         aString = GetEditText(pEngine);
     }
     lcl_RemoveTabs(aString);
@@ -3174,8 +3176,11 @@ BOOL ScInputHandler::KeyInput( const KeyEvent& rKEvt, BOOL bStartEdit /* = FALSE
                 else
                 {
                     if (pTableView)
-                        if ( pTableView->PostKeyEvent( rKEvt ) )
+                    {
+                        Window* pFrameWin = pActiveViewSh ? pActiveViewSh->GetFrameWin() : NULL;
+                        if ( pTableView->PostKeyEvent( rKEvt, pFrameWin ) )
                             bUsed = TRUE;
+                    }
                     if (pTopView)
                         if ( pTopView->PostKeyEvent( rKEvt ) )
                             bUsed = TRUE;


More information about the ooo-build-commit mailing list