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 Nov 7, 2023
1 parent e144cad commit f3544c1
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 @@ -312,6 +312,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 f3544c1

Please sign in to comment.