io/input,io/key: [API] replace SoftKeyboardOp with a command

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-10-09 16:37:21 -05:00
parent be36fc88aa
commit 5dd41f74d3
6 changed files with 18 additions and 34 deletions
+1 -1
View File
@@ -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