fyne-io/fyne

Add ClearSelection method

Closed

#6,375 opened on Jun 25, 2026

 (0 comments) (0 reactions) (0 assignees)Go (1,526 forks)batch import
after-releasegood first issue

Repository metrics

Stars
 (28,262 stars)
PR merge metrics
 (Avg merge 26d 11h) (38 merged PRs in 30d)

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

Idea from https://github.com/fyne-io/fyne/issues/6277, and at least widget.Entry and widget.Label have selection aspects, and other widgets might qualify as well as per https://github.com/fyne-io/fyne/issues/1395 since it requires no knowledge of internal selection details.

Is it possible to construct a solution with the existing API?

Calling SetText with the same text again could work but is a bit weird.

Describe the solution you'd like to see.

ClearSelection method for widget.Label and widget.Entry.

Contributor guide