The problem:
When actions are triggered from the referencing element e.g. through the actions rotor or an actions-specific UI, the desired UX would be for focus to stay on the referencing element.
Right now, it moves to the action as a natural result of triggering a click event.
Possible solutions:
- Do not call focus on the action when synthetically triggering it. Pros: best user experience. Cons: AT detection vector?
- Call focus back on the referencing element immediately after the click. Pros: less of a detection vector. Cons: depending on the timing, this could trigger SR behavior like mode switching, starting to read the change, etc.
- ??
I've chatted with Jamie, Brett, and Chrome folks, and there are no technical issues with implementing any of these solutions. The question is mostly around whether implementing specific focus behavior after synthetically triggering it is a privacy concern.