Repository navigation
Arrow keys in the part list only hover, Enter pins and selects - #154
Merged
Merged
Conversation
An arrow key moved the selection and pinned the part it landed on. Now it moves a focus row and hovers the part, like the mouse does. Enter pins and selects the focused part. Escape in the part search clears the hover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCbPYsA5LYNX8HZaGGZCpK
Owner
Author
|
Review round 1
FYI
|
A breadcrumb selects a part without a rebuild of the list, so the focus row and its hover stayed on the part the arrow keys reached. Enter then picked that part, not the selected one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCbPYsA5LYNX8HZaGGZCpK
Contributor
|
The last used input owns the hover. A mouse hover or its end now drops the arrow-key focus row in the part list, so no outline is left on a row the board no longer shows. The arrow keys set the hover directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCbPYsA5LYNX8HZaGGZCpK
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.
Follow-up to #153.
An arrow key in the part list selected and pinned the part it landed on. A list should only be navigated by the arrow keys. Enter is what selects.
Now an arrow key moves a focus row (the same outline the net list uses) and hovers the part on the board, like the mouse does. It does not pin, select, change the URL or rebuild the list. Enter pins and selects the focused part. With no focused row, Enter uses the selected row, then the first row, as before. Escape in the part search also clears the hover.
The first arrow press starts from the selected part, if there is one.
Tests: the two tests from #153 are replaced by two that check arrow keys only hover and Enter pins. Both fail on main. Full suite: 169 passed. The known flaky test "an inner layer checkbox changes both sides" timed out in the full run and passed alone.
🤖 Generated with Claude Code
https://claude.ai/code/session_01UCbPYsA5LYNX8HZaGGZCpK