]> git.lyx.org Git - features.git/commitdiff
Fix cursor blinking after unknown action.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 11 Oct 2007 07:03:17 +0000 (07:03 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 11 Oct 2007 07:03:17 +0000 (07:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20893 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp
src/frontends/WorkArea.cpp

index 738d799c2deb0a92b149dd06ca9aecb51c975425..e2a12e1c1f353223b808d11761e3c492ea792fc2 100644 (file)
@@ -413,12 +413,6 @@ void LyXFunc::processKeySym(KeySymbol const & keysym, KeyModifier state)
        } else {
                dispatch(func);
        }
-
-       /* When we move around, or type, it's nice to be able to see
-        * the cursor immediately after the keypress.
-        */
-       if (lyx_view_ && lyx_view_->currentWorkArea())
-               lyx_view_->currentWorkArea()->startBlinkingCursor();
 }
 
 
index 86a4d93cf52880dd42e11ec304cd1d806d886b7a..f1114df40df7f4b17cb95a7fc8289dbee3c6dc1e 100644 (file)
@@ -171,6 +171,11 @@ void WorkArea::processKeySym(KeySymbol const & key, KeyModifier mod)
 
        theLyXFunc().setLyXView(lyx_view_);
        theLyXFunc().processKeySym(key, mod);
+
+       /* When we move around, or type, it's nice to be able to see
+        * the cursor immediately after the keypress.
+        */
+       startBlinkingCursor();
 }