After losing focus the cursor doesn't repaint sometimes

RESOLVED FIXED

Status

Skywriter
Editor
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Julian Viereck, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
When the editor loses the focus, the insertion pointer is not repainted. As 
this, the pointer is not drawn as a red rect.
(Reporter)

Comment 1

8 years ago
Created attachment 430846 [details] [diff] [review]
Fix the bug

The basic bug in this case was, that the TextView.willLoseKeyResponderTo() function didn't called _invalidateInsertionPointIfNecessary().

To fix this bug I have combined the two functions _invalidateInsertionPointIfNecessary() and _invalidateSelection() into just one. This way by calling this._invalidateSelection() from willLoseKeyResponderTo the insertionPointer is redrawn as well.
Attachment #430846 - Flags: review?(pwalton)
(Reporter)

Updated

8 years ago
Whiteboard: needs-pull
Pushed as changeset 863df2136fb8.
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Whiteboard: needs-pull
Attachment #430846 - Flags: review?(pwalton) → review+
You need to log in before you can comment on or make changes to this bug.