mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
widget: [API] replace Focus methods with explicit FocusCmds
Now that widgets by convention may be focused by issuing FocusCmd directly, remove the now redundant Focus methods on Clickable, Editor, Selectable. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -49,7 +49,7 @@ func TestSelectableMove(t *testing.T) {
|
||||
// Layout once to populate e.lines and get focus.
|
||||
s := new(Selectable)
|
||||
|
||||
s.Focus(gtx)
|
||||
gtx.Execute(key.FocusCmd{Tag: s})
|
||||
s.SetText(str)
|
||||
// Set up selection so the Selectable filters for all 4 directional keys.
|
||||
s.Layout(gtx, cache, font.Font{}, fontSize, op.CallOp{}, op.CallOp{})
|
||||
|
||||
Reference in New Issue
Block a user