fyne-io/fyne

Add ClearSelection method

Chiusa

#6375 aperta il 25 giu 2026

 (0 commenti) (0 reazioni) (0 assegnatari)Go (1526 fork)batch import
after-releasegood first issue

Metriche repository

Star
 (28.262 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor