Repository navigation
Preview nothing on an option's pick mark, and leave out keys the hints draw on a control - #6137
Merged
Merged
Conversation
…s draw on a control Tabbing onto an option card's pick mark showed a preview reading "choose one" with a `1` chip. It stood below the digit, across the right edge of the focus ring the card draws and over the next option's title, so the nightly ring sweep reported that edge unseen on every option card (#5832). The preview told the user nothing they could not already see: the mark's round or square corner says whether the group takes one option or several, the option's words stand beside it, and the digit drawn on the card says its key. - The pick mark previews nothing, to a resting pointer, to Tab or to a held finger. Its accessible name still says "choose one" or "choose any" to a screen reader. The maintainer chose this over standing the preview clear of the card's ring, which put it over the next card's title in a stacked group, and over letting the sweep accept a preview that covers the ring it rides. - A control's preview leaves out a key the command hints label that control with, a lent badge or a corner chip (`drawnKeys` in command-hints.js), as it already left out a key chip inside the control. It reads those keys from the dispatcher's reading rather than from the painted badge, which lands a frame after the focus move that reaches the control; a chip the paint withholds for want of a free corner still counts. A playground's commit press, such as "Apply these settings" with its drawn `1`, now previews nothing; Done, a suggestion's Accept and Reject and a deck's Back and Forward keep their names and drop the chip they already wear. Closes #5832 > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 16, 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.
Tabbing onto an option card's pick mark showed a preview reading "choose one" with a
1chip. It stood below the card's digit, across the right edge of the focus ring the card draws and over the next option's title, so the nightly ring sweep (test_each_sampled_focus_ring_is_shown_whole_in_its_surface) reported that edge unseen on every option card. The preview told the user nothing they could not already see: the mark's round or square corner says whether the group takes one option or several, the option's words stand beside it, and the digit drawn on the card says its key.What changes for the user
drawnKeys(command-hints.js) reads those keys from the dispatcher's reading rather than from the painted badge, which lands a frame after the focus move that reaches the control. A chip the paint withholds for want of a free corner, or while a scroll settles, still counts, so its key goes unsaid there; recording what the paint drew instead would bring back the race on Tab.Previews this removes or trims, found by tabbing through every example and the feature gallery before and after the change:
lf-options choose)1Previews that name an action the face doesn't spell out keep their key chips where no hint draws the key, such as Resolve's
r, a playground's Reset⌥0and a code block's Hide notesn.Cases I left alone, for your call
Checks
_tab_walktest, not committed) on alert-review and command-hub: 3 option-ring faults on each at81904bdec5(the files this touches are unchanged since), none with this change.test_a_preview_leaves_out_what_its_control_already_shows(Chromium and Firefox). It fails on the mark's pointer preview without the lf-options change, and on Done's chip without the preview change.test_a_control_previews_its_word_and_every_key_that_presses_it(Resolve keeps "Resolve thread" and itsr),test_a_preview_says_nothing_its_target_shows_whole,test_a_thread_s_words_in_a_widget_preview_it_unless_the_widget_draws_them, the panel field's Send preview, the add field's preview, andpnpm run check(runtime tests included).Closes #5832