I want to show a dialog and automatically set focus to a OutlinedTextField, so user can instantly start typing.
I ended up with text field does get focus, does get the cursor flickering, but the keyboard remains hidden. So user still has to click on a textField to make the keyboard appear.
Here is how I'm doing this
LaunchedEffect(Unit) {
focusRequester.requestFocus()
}
OutlinedTextField(
value = text,
modifier = Modifier
.focusRequester(focusRequester)
.fillMaxWidth(),
onValueChange = {
text = it
}
)