Skip to content

fix(hotkeys): restore F-key screen navigation off the console page (#2403) - #2404

Merged
kevinthelago merged 4 commits into
developfrom
2403-screen-hotkeys
Jul 6, 2026
Merged

fix(hotkeys): restore F-key screen navigation off the console page (#2403)#2404
kevinthelago merged 4 commits into
developfrom
2403-screen-hotkeys

Conversation

@kevinthelago

Copy link
Copy Markdown
Owner

Bug

#1218 gated the whole useHotkeys hook on activeWorkspace === "console" (to keep its capture-phase listener off other screens). But the F-key screen-navigation hotkeys (switch rail workspaces) live in that same hook — so they stopped firing anywhere but the console page (F2 from GitHub/Planner/etc. did nothing).

Fix

Verification

  • npm run typecheck clean · npm run lint 0 errors.
  • useHotkeys.test.tsx is behavioral (dispatches real keydown events, asserts setWorkspace): off-console F6 → GitHub, F1 → no-op. keybindings/shortcuts suites updated for the removed screen-console entry.

Closes #2403.

🤖 Generated with Claude Code

kevinthelago and others added 4 commits July 5, 2026 21:29
…2403)

#1218 gated the whole useHotkeys hook on activeWorkspace === "console" to keep the
capture-phase listener off other screens — but the F-key SCREEN-navigation hotkeys
(switch rail workspaces) live in that same hook, so they stopped firing anywhere but
the console page (F2 from GitHub did nothing).

- Extract the screen-nav match into a shared `screenForEvent` helper and add an
  always-on listener that handles F-key nav on every page. It's gated OFF the console
  page; the console page keeps handling nav in its own effect (after the broadcast
  intercept, so an F-key still broadcasts in broadcast mode) — no double-firing.
- Console-OPERATION hotkeys (broadcast, pane-select, view-switch, zoom, clear-input,
  redraw, focus-next, tab-switch) stay console-only, exactly as #1218 intended.
- Drop the `F1 → console` screen-nav binding (screen-console) — the console page is
  being retired (#2372), so there's no point navigating to it by hotkey.

Tests: off-console F6 navigates to GitHub; F1 no longer navigates; keybindings/shortcuts
suites updated for the removed screen-console entry.

Closes #2403.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kevinthelago
kevinthelago merged commit adae2db into develop Jul 6, 2026
7 checks passed
@kevinthelago
kevinthelago deleted the 2403-screen-hotkeys branch July 6, 2026 19: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.

1 participant