commitFocusedField

suspend fun commitFocusedField()(source)

Commits the field that has the caret, as leaving it does, and returns once the document's scripts have finished with it and with every call the viewer made to them before.

A tap on the host's own button, such as Save or Submit, does not take the caret out of the field. Call this first, so the value the reader typed last has gone through the field's scripts and into the form before the host reads the form.