Bug 41431 - Text cursor is not visible while moving around with arrow keys
Summary: Text cursor is not visible while moving around with arrow keys
Status: CLOSED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR normal
Target Milestone: ---
Assignee: Kate Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-21 22:48 UTC by andrea
Modified: 2002-09-16 14:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrea 2002-04-21 22:37:42 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           
Version:           
Severity:          normal
Installed from:    
Compiler:          
OS:                
OS/Compiler notes: 

In Kwrite from KDE3 but also in Kate whenever I move with an arrow key the cursor disapper reappering more or less a second after I stop moving. Normally (I mean in all other KDE application) cursor stops blinking and remain visible while using arrow keys in KWrite and Kate the behaviour seems to be the opposite the cursor stops blinking and become invisible until it restart blinking.
This is very very annoying because as one start moving he does no more see where the cursor is so moving the cursor correctly without the mouse becomes a real pain.

(Submitted via bugs.kde.org)
Comment 1 Nicolai Haehnle 2002-07-31 09:32:32 UTC
The attached patch restarts the blink timer whenever the cursor is moved 
which makes for much more pleasant scrolling.

Setting cursorOn = true; is already better than the current state. 
Resetting the timer is more pleasant because it makes sure that the cursor 
will remain visible for a short time after the user stopped scrolling. It 
also prevents the situation where the cursor disappears for a short time 
when an arrow key is pressed before the key repeat kicks in.

hth
Nicolai
Comment 2 Nicolai Haehnle 2002-07-31 09:33:25 UTC
--Boundary-00=_l76R9moBTwX8TkU
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

Sorry forgot to actually attach the patch.

hth
Nicolai
--Boundary-00=_l76R9moBTwX8TkU
Content-Type: text/x-diff;
  charset="us-ascii";
  name="kate-cursor.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="kate-cursor.patch"

Index: part/kateviewinternal.cpp
===================================================================
RCS file: /home/kde/kdelibs/kate/part/kateviewinternal.cppv
retrieving revision 1.110
diff -p -u -r1.110 kateviewinternal.cpp
--- part/kateviewinternal.cpp23 Jul 2002 16:30:54 -00001.110
+++ part/kateviewinternal.cpp31 Jul 2002 09:13:19 -0000
@@ -5516 +55212 @@ void KateViewInternal::updateCursor( con
 
   QPoint cursorP = cursorCoordinates();
   setMicroFocusHint( cursorP.x() cursorP.y() 0 m_doc->viewFont.fontHeight );
+  
+  if (cursorTimer) {
+    killTimer(cursorTimer);
+    cursorTimer = startTimer( KApplication::cursorFlashTime() / 2 );
+    cursorOn = true;
+  }
   
   emit m_view->cursorPositionChanged();
 }

--Boundary-00=_l76R9moBTwX8TkU--
Comment 3 John Firebaugh 2002-08-30 03:11:11 UTC
Thank you for your bug report.
The bug that you reported has been identified and has been fixed in the
latest development (CVS) version of KDE. The bug report will be closed.