Repository navigation
Move focus with the arrow keys in the remaining tab and radio groups. - #1277
Open
calledtoconstruct wants to merge 1 commit into
Open
calledtoconstruct wants to merge 1 commit into
calledtoconstruct wants to merge 1 commit into
Conversation
Arrow keys, Home, and End move through display scale, input mode, layouts, terminal tabs, backup shares, characters, app categories, workspaces, orchestrator tabs, machine sections, hardware choices, wallpapers, and the other computer's operating system. Tab still stops on the selected item only. Enter or Space still chooses. Fixes MyOwnDataCenter#513. Co-Authored-By: Grok 4.7 <grok@x.ai>
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.
What this changes
Arrow keys, Home, and End move focus through the tabs and radio choices that previously stayed put: display scale, input mode, screen layout and shape, terminal tabs, backup shares, characters, app categories, workspaces, orchestrator tabs, machine sections, hardware choices, wallpapers, and which operating system the other computer runs. Tab still lands on the selected item only. Enter or Space still makes the choice.
How you tested it
npm run typecheck,npm run buildandnpm testpassFrom
/tmp/os-513:node --experimental-strip-types --import ./test/retry-rm.mjs --test --test-concurrency=1 test/roving-keys.test.mjspassed, andnpx tsc --noEmit -p webpassed.npm run typecheck,npm run build, and the fullnpm testwere not run.Anything to know
The version number and What's New are unchanged. Moving focus does not select, so arrowing through a group does not open a section, apply a wallpaper, or change a setting until Enter or Space.
Note
Low Risk
Accessibility-focused focus management only; selection still requires explicit activation and behavior matches existing roving usage elsewhere.
Overview
Extends the shared
rovingkeyboard helper to tab lists and radio groups that previously had no arrow-key focus behavior, so keyboard users can move between choices consistently across the app.Console (display scale and touch/mouse mode), LayoutPicker (screen layout and desktop shape cards), terminal tabs, NAS share pick in backups, assistant character grid, desktop app category tabs, Hyprland workspace pills, orchestrator and machine tabs (replacing custom tab keyboard code in
MachineTabs), hardware choice radios, assistant wallpaper rows, and swarm OS chips now userovingKeyDownwithrovingTabIndexso Tab stops only on the selected item (or the first when none is selected), while Arrow keys, Home, and End move focus without changing the selection until Enter or Space.A new
roving-keys.test.mjscase asserts these files wire the same patterns as earlier adopters.Reviewed by Cursor Bugbot for commit 0d8597a. Bugbot is set up for automated code reviews on this repo. Configure here.