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