How can I move focus to next focusable composable ...
# compose-desktop
t
How can I move focus to next focusable composable when pressing
Tab
from a
TextField
? Do we have any built-in support? (other than manually moving the focus using a state). I am looking for something like tabIndex
1
👀 2
a
Check
Modifier.focusOrder
🆗 1
t
Also working on focus problems currently but for Jetpack Compose. I found sample code here which works on Google TV. Not sure if it also works for Compose for Desktop: https://cs.android.com/androidx/platform/frameworks/support/+/0a6f6ab5001b4885cf6f47[…]/java/androidx/compose/ui/demos/focus/CustomFocusOrderDemo.kt
t
thanks @Timo Drick i'll check thos
a
yes, it should work for Compose for Desktop too
👍 1
t
focusOrder worked. 👍 but the focus is not going to Button from
TextField
. Is there anything else I need to do?