Vinícius Araújo
12/06/2024, 3:04 PM<ConstraintLayout>
<Toolbar/>
<Button/>
<ComposeView/>
<Button/>
<ConstraintLayout/>
And what's happening is that once the focus enters the ComposeView, trying to navigate through pressing tab, the focus only navigates within this ComposeView. Directional navigation (pressing down) works but that's not what I want here. Does anyone know the best way to approach this?Vinícius Araújo
12/06/2024, 3:08 PMval fcsCallback : () -> Unit = {
button2.requestFocus()
}
And do something like:
modifier = Modifier.onPreviewKeyEvent {
when {
KeyEventType.KeyUp == it.type && Key.Tab == it.key -> {
fcsCallback()
true
}
else -> false
}
}
On my last composable on that ComposeView. It's still buggy but the focus gets outVinícius Araújo
12/06/2024, 3:12 PMFilipeLipan
12/09/2024, 9:19 PMVinícius Araújo
12/09/2024, 9:35 PMVinícius Araújo
12/09/2024, 9:35 PM