Repository navigation
Enter the comment box at a draft stop with Enter, as c does - #6689
Merged
Merged
Conversation
A walk's stop at a kept comment leaves focus on the comment box's frame rather than in its words, so the next t walks on. There `c` put the caret after the words and Enter did nothing, the one place a thread's box didn't answer Enter. The box's frame now has its own Enter row in composing/input.js, shaped like every other Enter in Leaf: it belongs to the element focus is on. Rejected: one page-wide Enter row that writes wherever `c` would when the box belongs to the place the user stands on, replacing `thread.primary`'s reply half and `option.reply`. It saved no lines, made Enter live on any focused element without an Enter of its own, and tied Enter to each of `c`'s six destinations. Pending Max's pick on the handoff page; not yet tested beyond a probe of lost-update (Enter at the draft stop now focuses the box, as c does; a card's Enter and t from the box are unchanged) and the runtime tests.
The walk's draft-stop test now runs its last press as `c` and as Enter, and checks the caret stands after the words. With the box's Enter row disabled, the Enter case fails and the `c` case passes.
leaf-agent
approved these changes
Nov 21, 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.
At a
tstop on a kept comment, the walk leaves focus on the comment's box rather than in its words (#6675), so the nexttwalks on. Therecput the caret after the words and Enter did nothing, the one place you stand on a box that Enter didn't enter. The box's frame now has its own Enter row incomposing/input.js: while focus is on the box but not in its words, Enter puts the caret after them, ascdoes. The row is declared on every boxwireInputbuilds, but only a draft stop leaves focus on a frame today.Max picked this over one page-wide Enter row that would write wherever
cwould when the box belongs to what you stand on (replacingthread.primary's reply half andoption.reply). That rule saved no lines, made Enter live on any focused element without an Enter of its own, and tied Enter to each ofc's six destinations. Every Enter row in Leaf stays tied to the element focus is on, or to the mode it confirms.Tests: the walk's draft-stop test now ends with
cand with Enter and checks the caret stands after the words; with the row disabled the Enter case fails. The runtime tests pass.