Skip to content

Commit

Permalink
be extra sure not to "leak" cursor animations
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jan 12, 2024
1 parent 9cf35c2 commit 5bc8660
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widget/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ func (e *Entry) FocusGained() {
//
// Implements: fyne.Focusable
func (e *Entry) FocusLost() {
// be extra sure we won't "leak" cursor animations
if e.cursorAnim != nil {
e.cursorAnim.stop()
}

e.setFieldsAndRefresh(func() {
e.focused = false
e.selectKeyDown = false
Expand Down

0 comments on commit 5bc8660

Please sign in to comment.