From b2b12d6288a105581572b0e38087e719d281c3cf Mon Sep 17 00:00:00 2001 From: Walter Werner SCHNEIDER Date: Tue, 8 Jul 2025 15:11:45 +0300 Subject: [PATCH] widget: remove focus on click behavior from Clickable This is a breaking change, users that need the old behavior can implement it using the existing API. Fixes: https://todo.sr.ht/~eliasnaur/gio/511 Signed-off-by: Walter Werner SCHNEIDER --- widget/button.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/widget/button.go b/widget/button.go index c5686a03..f03e3f1f 100644 --- a/widget/button.go +++ b/widget/button.go @@ -9,7 +9,6 @@ import ( "gioui.org/gesture" "gioui.org/io/event" "gioui.org/io/key" - "gioui.org/io/pointer" "gioui.org/io/semantic" "gioui.org/layout" "gioui.org/op" @@ -141,9 +140,6 @@ func (b *Clickable) update(t event.Tag, gtx layout.Context) (Click, bool) { } } case gesture.KindPress: - if e.Source == pointer.Mouse { - gtx.Execute(key.FocusCmd{Tag: t}) - } b.history = append(b.history, Press{ Position: e.Position, Start: gtx.Now,