Skip to content

Conversation

@ThomasK33
Copy link
Member

When pressing Cmd+2 to switch to the Review tab, focus now immediately moves to the ReviewPanel, allowing j/k keyboard navigation to work right away.

Problem

Previously when pressing Cmd+2:

  • If not already on Review tab: Focus remained in chat input box
  • j/k keys would type text instead of navigating hunks
  • User had to manually click in the review panel to enable keyboard navigation

Solution

Simplified the keyboard shortcut handler to always trigger focus on the ReviewPanel when Cmd+2 is pressed, regardless of current tab state.

Testing

Manually verified:

  • ✅ Cmd+2 from Costs tab → focuses review panel, j/k navigate hunks
  • ✅ Cmd+2 while already on Review → maintains focus, no disruption
  • ✅ Cmd+1 → Cmd+2 cycle works correctly

Generated with cmux

When pressing Cmd+2 to switch to the Review tab, focus now immediately
moves to the ReviewPanel, allowing j/k keyboard navigation to work right
away. Previously, focus remained in the chat input, causing j/k to type
text instead of navigating hunks.

_Generated with `cmux`_

Change-Id: If1a80285fdc63387f4d5b4279c010eeb68a2c91e
Signed-off-by: Test <test@example.com>
@ThomasK33 ThomasK33 merged commit 4ab5406 into main Nov 3, 2025
13 checks passed
@ThomasK33 ThomasK33 deleted the fix-focus-review branch November 3, 2025 18:50
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