Travis Griggs
05/01/2023, 3:48 PMval isVisible = WindowInsets.isImeVisible
LaunchedEffect(WindowInsets.isImeVisible) { println(">>>>>> KEYBOARD HAPPENED!! $isVisible") }
When I tap a TextBox and the keyboard comes up, I get the following in Logcat:
>>>>>> KEYBOARD HAPPENED!! true
When I dismiss the keyboard with the Done
button, I see:
>>>>>> KEYBOARD HAPPENED!! false
>>>>>> KEYBOARD HAPPENED!! true
>>>>>> KEYBOARD HAPPENED!! false
Why do I get the back and forth on dismissal? Why not just one false?Alex Vanyo
05/01/2023, 3:51 PMDone
?Travis Griggs
05/01/2023, 3:53 PMkeyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),
keyboardActions = KeyboardActions.Default
I just tap the Done button with those settingsAlex Vanyo
05/10/2023, 2:38 PMinputMethodManager.hideSoftInputFromWindow
directly for Done
instead of relying on the internal default