Has anyone noticed that `SoftwareKeyboardControlle...
# compose
s
Has anyone noticed that
SoftwareKeyboardController#show
doesn’t work super reliably for their composable? I’m using it to auto-show the keyboard when a dialog is shown but I’m forced to use a small delay. I was wondering how are others showing keyboard?
Copy code
val keyboardController = LocalSoftwareKeyboardController.current
val requester = remember { FocusRequester() }

TextField(
  modifier = Modifier.focusRequester(requester),
  value = ...,
  onValueChange = ...
)

LaunchedEffect(Unit) {
  delay(50)
  focusRequester.requestFocus()
  keyboardController?.show()
}
z
Could you file a bug?
s