forked from joejulian/gio
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
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ func (l *Selectable) Layout(gtx layout.Context, lt *text.Shaper, font font.Font,
|
||||
key.InputOp{Tag: l, Keys: keys}.Add(gtx.Ops)
|
||||
if l.requestFocus {
|
||||
gtx.Queue(key.FocusCmd{Tag: l})
|
||||
key.SoftKeyboardOp{Show: true}.Add(gtx.Ops)
|
||||
gtx.Queue(key.SoftKeyboardCmd{Show: true})
|
||||
}
|
||||
l.requestFocus = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user