How to Accessibly Rotate Contents with jQuery

The Tab approach is the only reliable way I know. Focus/blur based approaches are unreliable, because they don’t have enough information to be sure of where the focus is going to.

Although, the other way you can do it is to set tabindex -1 on every other page element while the modal is open … but that’s a brutal hack!