mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
io/input,io/key: [API] replace SoftKeyboardOp with a command
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -646,7 +646,7 @@ func (e *Editor) layout(gtx layout.Context, textMaterial, selectMaterial op.Call
|
||||
key.InputOp{Tag: &e.eventKey, Hint: e.InputHint, Keys: keys}.Add(gtx.Ops)
|
||||
if e.requestFocus {
|
||||
gtx.Queue(key.FocusCmd{Tag: &e.eventKey})
|
||||
key.SoftKeyboardOp{Show: true}.Add(gtx.Ops)
|
||||
gtx.Queue(key.SoftKeyboardCmd{Show: true})
|
||||
}
|
||||
e.requestFocus = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user