fyne-io/fyne

Add ClearSelection method

Fermée

#6 375 ouverte le 25 juin 2026

 (0 commentaire) (0 réaction) (0 personne assignée)Go (1 526 forks)batch import
after-releasegood first issue

Métriques du dépôt

Stars
 (28 262 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur