CloseKeyboardEffect

fun CloseKeyboardEffect(keepFocus: Boolean = false)

A Composable side effect that closes the virtual keyboard when entering the composition.

Parameters

keepFocus

If true, the keyboard will be hidden while keeping focus on the current element. If false (default), focus will also be cleared.