Show soft keyboard on editor focus

This commit is contained in:
Greg Pomerantz 2026-06-03 22:31:49 -04:00
parent b37e6bfecf
commit d090447f2d

View File

@ -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)
} }