(*** 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)
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
--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--
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.