Show soft keyboard on editor focus
This commit is contained in:
parent
b37e6bfecf
commit
d090447f2d
|
|
@ -212,6 +212,7 @@ func (tf TextField) Draw(gtx layout.Context, r *Renderer) {
|
|||
if tf.Focused {
|
||||
fmt.Printf("Focused: tag = %s\n", tf.id)
|
||||
gtx.Execute(key.FocusCmd{Tag: tf.id})
|
||||
gtx.Execute(key.SoftKeyboardCmd{Show: true})
|
||||
}
|
||||
r.drawWrappedText(gtx, tf.Value, tf.region, tf.WrapWidth, tf.ScrollOffset, tf.CursorPosition)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user