Is there a way to track accessibility focus (where...
# compose
a
Is there a way to track accessibility focus (where the talkback highlight is)? I have added onFocusEvent/onFocusChanged + focusable modifiers, and I don't get any events when navigating with talkback. I DO get notifications when navigating with the keyboard or when i use a focusRequester to request focus. I've run into wanting this a couple times where I'm trying to keep accessibility focus staying on the same item when re-creating the activity on rotation, or right now where I have custom accessibility actions to reorder items in a list (since the default 'drag reorder' is not going to be good for accessible users, the actions give another way to do it), and it seems like when an item is moved focus should stay on that item. The timing of that is not straightforward though since the talkback custom actions dialog itself has focus for awhile, and you can't move focus until after it has restored focus into the compose view, but I haven't found a way to listen for when that happens. -- I can guess and run a delayed coroutine so it moves slightly after, that seems kind of jumpy