hideKeyboard

suspend fun hideKeyboard(timeout: Duration? = null)(source)

Hides the soft keyboard with one Back key, which the keyboard consumes; with no keyboard showing nothing is sent, so Back never reaches the app. Only the key is reported: assert keyboardShown when it matters.