How can I perform an action when the user closes t...
# compose
a
How can I perform an action when the user closes the keyboard? All i can find is how to handle ImeAction clicks. I want to call focusManager.clearFocus() no matter how the user closes the keyboard.
f
What if the user is using an external hardware keyboard? You would clear the focus when they would hide the software one?
4
z
Yea there are UX questions, but if you really do want to check you can use
WindowInsets.isImeVisible
(docs), but that will only work on API 23 and above.