fyne-io/fyne

Add ClearSelection method

已关闭

#6,375 创建于 2026年6月25日

 (0 条评论) (0 个反应) (0 位负责人)Go (1,526 个派生)batch import
after-releasegood first issue

仓库指标

星标
 (28,262 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南