fix: keep modality on window refocus so Safari doesn't show a focus ring (#10513)
Safari fires the window/element focus pair twice when returning to a tab
or app. The first element focus event clears hasBlurredWindowRecently, so
the second one takes the 'focus without a preceding user event' path and
switches to virtual modality, showing a focus ring on the element the
user last clicked or tapped.
Re-arm hasBlurredWindowRecently whenever the window itself is focused,
since any focus event that follows is the browser restoring focus rather
than a user initiated one.