From: Abdelrazak Younes Date: Thu, 11 Oct 2007 07:03:17 +0000 (+0000) Subject: Fix cursor blinking after unknown action. X-Git-Tag: 1.6.10~7899 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=18137a6ad631448cc9b319edc21fbecaf6b518c5;p=lyx.git Fix cursor blinking after unknown action. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20893 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 738d799c2d..e2a12e1c1f 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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(); } diff --git a/src/frontends/WorkArea.cpp b/src/frontends/WorkArea.cpp index 86a4d93cf5..f1114df40d 100644 --- a/src/frontends/WorkArea.cpp +++ b/src/frontends/WorkArea.cpp @@ -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(); }