K Merle

    K Merle

    1 year ago
    It seems that due to animation during orientation change (from portrait to landscape)
    focusRequester.requestFocus()
    does not open the keyboard. Adding a 300ms delay does solve the issue it seems. Anyone faces the same issue and were you able to solve it better? I'd like to avoid delay.
    LaunchedEffect(Unit) {
        delay(300)
        focusRequester.requestFocus()
    }
    saket

    saket

    1 year ago
    K Merle

    K Merle

    1 year ago
    I think it is, the only difference is that I am able to get initial focus every time and open the keyboard. It's just that orientation change does not open the keyboard without delay.