Skip to content

Enter the comment box at a draft stop with Enter, as c does - #6689

Merged
max-sixty merged 3 commits into
mainfrom
t-walks-to-drafts
Nov 22, 2026
Merged

max-sixty merged 3 commits into
mainfrom
t-walks-to-drafts

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

At a t stop on a kept comment, the walk leaves focus on the comment's box rather than in its words (#6675), so the next t walks on. There c put 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 in composing/input.js: while focus is on the box but not in its words, Enter puts the caret after them, as c does. The row is declared on every box wireInput builds, but only a draft stop leaves focus on a frame today.

Max picked this over one page-wide Enter row that would write wherever c would when the box belongs to what you stand on (replacing thread.primary's reply half and option.reply). That rule 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. 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 c and with Enter and checks the caret stands after the words; with the row disabled the Enter case fails. The runtime tests pass.

This was written by Claude Code on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit 6ece01a into main Nov 22, 2026
6 checks passed
@max-sixty
max-sixty deleted the t-walks-to-drafts branch November 22, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants