microsoft / tabster

Web Application Keyboard Navigation Tools
https://tabster.io
MIT License
116 stars 34 forks source link

Fixing races between parts of Tabster that want to focus something asynchronously. #362

Closed mshoho closed 5 months ago

mshoho commented 5 months ago

Tabster does some focus movements asynchronously. Restorer restores lost focus asynchronously (to give the DOM the opportunity to finish the changes), Groupper handles Esc asynchronously (to give the application ability to handle Esc inside the Groupper).

This PR fixes the conflicts when both Groupper and Restorer want to move focus at the same time.