- I'm not fussy š) be focusable so have modified it to:
⢠be
.focusable(true)
ā
⢠have a
focusOrder(myFocusRequester)
ā
Documentation suggests this is all we need for a custom composable to be focused, and yet, when I call
requestFocus()
on my `Box`'s focus requester, the previously focused component (a regular
TextField
) does not appear to 'let go' of it's focus, also TalkBack does not shift it's highlight to the
Box
component.
What else do I need to do to effect a full transfer of focus over to my custom component?
r
rnett
08/19/2021, 2:28 AM
Make sure you're putting the
focusOrder
first, that's gotten me a couple of times.
š 1
š 3
š 1
d
darkmoon_uk
08/19/2021, 2:37 AM
...that was it. @rnett thank you!
darkmoon_uk
08/19/2021, 2:39 AM
This feels like such an obvious gotcha for devs trying to use these two modifiers in combination; it really would be quite easy to include in the API comments. Not proud to admit this probably cost me a day š