For instance, if I have an ordered set of objects [a, b, c, d, e] with their tabIndex property correctly assigned, and the focus is currently on object c, I want to change the focus so that:
a) Nothing is focused;
b) Next time I press tab, object a gets focused.
stage.focus = null solves (a), however it remembers the current index causing object d to be focused when tab is pressed.
Instead of trying to change the index , you could switch the tabEnabled property of the remaining objects to false, when the focus is on the first objet , enabled it again.
This example is not structured in functions, it’s just demo code to clarify what I mean
Press tab again, focus is on a