Anyone knows how to hide keyboard when anywhere on...
# compose
v
Anyone knows how to hide keyboard when anywhere on the screen apart from the text field is clicked or scrolled? Any global solution, i don’t want to add it on every screen
z
LocalSoftwareKeyboardController
v
@Zach Klippenstein (he/him) [MOD] No, I meant if theres like a config, which I can do once that, if keyboard is open and if the user touches or scrolls something which is not a text field The keyboard should close and focus taken away from the text Field I dont want to add this
onPointerInput
,
scroll listener
, etc and manually hide the keyboard for each and every screen composable
z
Ah nope. That’s not how focus works in compose, and it’s not configurable.
g
I do have the same question @Zach Klippenstein (he/him) [MOD] do you have any suggestion or workaround how to implement this?🤔