I have a Box with textfield inside. i want to hide keyboard by touching on the Box and use modifier of Box for it:
.onFocusEvent { focusState ->
if (focusState.isFocused) {
keyboardController?.hide()
}
}
But this applies to the text field as well, so the keyboard doesn't show up at all. How can i fix it?