Tune the focus-visible heuristics a bit (#41314)

This isn't quite right yet, as a proper solution would remember the
input modality at the moment of focus change, rather than at painting
time. But this gets us close enough for now.

Release Notes:

- N/A
ac3d2a338bMikayla Maki committed on 10/27/2025, 7:53:53 PM· committed by GitHubparent58f07ff
2 files changedLine totals unavailable