diff --git a/test/roving-keys.test.mjs b/test/roving-keys.test.mjs
index 3aa5c5df..1f8f662c 100644
--- a/test/roving-keys.test.mjs
+++ b/test/roving-keys.test.mjs
@@ -65,3 +65,25 @@ test('the app sheet and store tabs and the theme and accent radios use the same
assert.match(read('src/ui.tsx'), /rovingKeyDown\(e, RADIO_SELECTOR\)/)
assert.match(read('src/OmarchyThemes.tsx'), /rovingKeyDown\(e, RADIO_SELECTOR\)/)
})
+
+test('the remaining tab lists and radio groups use the same helper', () => {
+ const consoleSrc = read('src/Console.tsx')
+ assert.equal(consoleSrc.match(/rovingKeyDown\(e, RADIO_SELECTOR, 'horizontal'\)/g)?.length, 2)
+ assert.match(consoleSrc, /rovingTabIndex\(/)
+ const layout = read('src/LayoutPicker.tsx')
+ assert.equal(layout.match(/rovingKeyDown\(e, RADIO_SELECTOR\)/g)?.length, 2)
+ assert.match(layout, /rovingTabIndex\(/)
+ for (const file of ['src/TerminalTabs.tsx', 'src/desktop/Desktop.tsx', 'src/desktop/hyprland/Bar.tsx', 'src/fleet/Terminals.tsx', 'src/fleet/MachineTabs.tsx']) {
+ const src = read(file)
+ assert.match(src, /rovingKeyDown\(e, TAB_SELECTOR, 'horizontal'\)/)
+ assert.match(src, /rovingTabIndex\(/)
+ }
+ for (const file of ['src/backups.tsx', 'src/character/widgets.tsx', 'src/machines/HardwarePanel.tsx', 'src/screens/Assistant.tsx']) {
+ const src = read(file)
+ assert.match(src, /rovingKeyDown\(e, RADIO_SELECTOR\)/)
+ assert.match(src, /rovingTabIndex\(/)
+ }
+ const swarm = read('src/swarm/Swarm.tsx')
+ assert.match(swarm, /rovingKeyDown\(e, RADIO_SELECTOR, 'horizontal'\)/)
+ assert.match(swarm, /rovingTabIndex\(/)
+})
diff --git a/web/src/Console.tsx b/web/src/Console.tsx
index c06400c2..83eeb587 100644
--- a/web/src/Console.tsx
+++ b/web/src/Console.tsx
@@ -21,6 +21,7 @@ import {consoleShouldTakeFocus} from './consoleFocus'
import {BTN, bindConsoleWheel, charKeySteps, consoleDisconnectAction, consoleFailureMessage, effectiveConsoleScale, handleConsoleWheel, keepSizeZoom, keysymOfChar, mouseButtonFromEvent, nextTwoFingerGesture, PASTE_STEP_MS, pasteKeySequence, pasteKeySteps, pointToFb, readConsoleMetrics, reconcilePointerIds, resolveSuperKey, screenshotFilename, shouldSendConsoleInput, stalePointersOnPrimary, touchReleaseAction, type Pt, type SuperKey} from './consoleHelpers'
import {overlayBackUsesHistory, popstateClosesOverlay} from './overlayHistory'
import {Icon} from './icons'
+import {RADIO_SELECTOR, rovingKeyDown, rovingTabIndex} from './roving'
import {keysymFromEvent, setConsoleKeyHandler} from './desktop/hyprland/consoleBridge'
import {useMenuFocus} from './focus'
import {haptic, settleViewport, usePortalRoot, useScreenLock, useToast} from './ui'
@@ -1582,17 +1583,18 @@ export function Console({machine, onClose, embedded, windowId}: {machine: Machin
{fullscreen ? machine.name : live ? 'Connected' : state === 'connecting' ? 'Connecting…' : state === 'lost' ? 'Reconnecting…' : state === 'superseded' ? 'Opened elsewhere' : 'Unavailable'}
{res && {res.w} × {res.h}}
-
-