Repository navigation
Let c from a question's frame comment on the question - #4306
Merged
Merged
Conversation
After `m` lands on a question whose lf-ask holds an lf-shot, a click that flips the shot or drags its divider put focus on one of the shot's own controls, and `c` then opened a comment on the shot rather than on the question the user was walked to. A press on the shot's Pixels button left `c` on the question only because that button is offered chrome, which `OBLIGATION_CONTROL` happens to match. The markup was ordinary; the gesture became common when #3704 made Slider the shot's first view and its images click-focusable. `currentTarget` (composing/current-target.js) now reads a question's frame from the markup: focus inside an obligation's context but outside its answer widgets names the context, unless it rests on a datum, a visual part or an addressable element itself. That holds whether the question is answered and however many widgets share its frame. A focused link inside an option still names the option. Behavior change: from a control or link in an lf-ask's frame (its heading, prose or evidence such as an lf-shot), `c` and `e` target the question instead of the innermost addressable element there. Outside any question nothing changes. New test: `test_c_from_a_shot_in_a_questions_frame_comments_on_the_question`, which fails on the code before this change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # dist/kernel/kernel.json
leaf-agent
approved these changes
Oct 27, 2026
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.
After
mlands on a question whoself-askholds anlf-shot, a click that flips the shot or drags its divider put focus on one of the shot's own controls, andcthen opened a comment on the shot rather than on the question the user was walked to. A press on the shot's Pixels button leftcon the question only because that button is offered chrome, whichOBLIGATION_CONTROLhappens to match. The page's markup was ordinary; the gesture became common when #3704 made Slider the shot's first view and its images click-focusable (on a 2026-10-21 checkout, a click on the shot left focus on the question).currentTarget(browser/runtime/composing/current-target.js) now reads a question's frame from the markup: focus inside an obligation's context but outside its answer widgets names the context, unless it rests on a datum, a visual part or an addressable element itself. That holds whether the question is answered and however many widgets share its frame. A focused link inside an option still names the option (test_c_comments_on_what_the_user_is_located_in).Behavior change: from a control or link in an
lf-ask's frame (its heading, prose or evidence such as anlf-shot),candetarget the question instead of the innermost addressable element there. Outside any question nothing changes.New test:
test_c_from_a_shot_in_a_questions_frame_comments_on_the_question, which fails on the code before this change.