Repository navigation
Restore focus when a margin primary control changes - #2715
Merged
Merged
Conversation
Undo replaces a focused suggestion Undo control with Accept. The margin presentation previously restored focus only when an option was replaced, leaving the user on the body when the primary changed. Carry that primary standing through the same keyed focus restore.
max-sixty
added a commit
that referenced
this pull request
Oct 13, 2026
The eight files that conflicted take main's content with the sweep's edits re-applied by .tmp/standing/apply.py. #2336 re-indented the code under seven entries; those entries are now line-local, so a fresh run on 4ce9bc2 applies with no problems. Its new reads of renamed fields follow the rename: lf-suggestion and lf-options read the application's per-verb `inForce`, and projection.py names StateProjection's frozenset fields `absorbed` and `in_force` (with "standing" the merge of frozen publications called `.items()` on a frozenset). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The main CI run found that Undo of a suggestion can leave keyboard focus on the page body. The margin renderer already carries focus when an option changes, but it did not do so when the focused primary control changed from Undo back to Accept. It now passes that primary through the same keyed focus handoff.
The failing browser node reproduced on current
mainbefore this change and passes afterward. The neighboring cases for delivery after the user moves focus and Undo while focus is elsewhere also pass, as do 400 runtime tests. This preserves the user's keyboard place without reclaiming focus after a later gesture.