Upstream contribution · tt-a1i/archify
archify · Returning keyboard focus after copying from Archify
Problem
When clipboard access failed or was unavailable, the fallback selected a temporary field. Removing the field could leave keyboard focus on the document body.
Engineering response
The fallback remembers the focused element, removes the temporary field, and restores focus if the original element is still connected.
Evidence and scope
Controlled Chrome probes covered fallback success, false and exception outcomes. The merge record credits Rudy Celekli as original contributor and documents the maintainer's later integration with Codex assistance.