Summary: | Text cursor is not visible while moving around with arrow keys | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | andrea |
Component: | general | Assignee: | Kate Developers <kde-kant> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
andrea
2002-04-21 22:37:42 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 --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. |