Doc Focus Fix
Fixed a handful of edge cases around focus and cursor handoff in Google Docs.
This patch focused on the awkward edge cases that show up when focus moves around a Google Doc. Typing now continues more predictably when the user clicks away and comes back, so the run feels less fragile.
Safer focus checks before dispatching keystrokes.
Cleaner cursor restoration after interruptions.
Fewer false stops when switching tabs.