Karan Sharma
12/29/2024, 2:42 AMval keyboard = LocalSoftwareKeyboardController.current
val focusRequester = remember { FocusRequester() }
LaunchedEffect(Unit) {
focusRequester.requestFocus()
keyboard?.show()
}
Thoughts on handling keyboard open using a LaunchedEffect when we navigate to a new screen. I observed that some times if we navigate too quickly(back and forth), the screen is completely blank. and nothing happens even if hardware back button is clicked.
• What should be a safe way to open / hide the keyboard, when we navigate to another screen.
• Thoughts on using awaitFrame, but given that it's android only API, looking for something that will work with Compose Multiplatform.Karan Sharma
12/29/2024, 3:23 AMKaran Sharma
12/29/2024, 3:45 AMZach Klippenstein (he/him) [MOD]
12/29/2024, 7:01 PMawaitFrame
with compose on any platform, always `withFrameNanos`/`withFrameMillis`Zach Klippenstein (he/him) [MOD]
12/29/2024, 7:02 PMKaran Sharma
12/30/2024, 1:23 AMZach Klippenstein (he/him) [MOD]
12/30/2024, 6:59 PM