forked from joejulian/gio
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 <contact@schnwalter.eu>
This commit is contained in:
committed by
Elias Naur
parent
b2f6707ad1
commit
b2b12d6288
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user