https://kotlinlang.org logo
#compose
Title
# compose
h

Hasan Nagizade

01/03/2023, 4:45 PM
Copy code
val focusManager = LocalFocusManager.current
focusManager.clearFocus()
this code removes the focus from
TextField
and closes the keyboard. How can I close the keyboard but keep focus on
TextField
?
k

Kevin Del Castillo

01/03/2023, 4:50 PM
LocalSoftwareKeyboardController
r

robercoding

01/03/2023, 5:19 PM
Copy code
val keyboardController = LocalSoftwareKeyboardController.current
keyboardController?.hide()
7 Views