From 67e0bc13141f5dc19f2c2fcd87c4e6e874917f4e Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 3 Nov 2025 12:54:24 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20focus=20Review=20panel=20?= =?UTF-8?q?when=20switching=20with=20Cmd+2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/components/RightSidebar.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/RightSidebar.tsx b/src/components/RightSidebar.tsx index 87543006c..3eb7cd7a5 100644 --- a/src/components/RightSidebar.tsx +++ b/src/components/RightSidebar.tsx @@ -114,12 +114,8 @@ const RightSidebarComponent: React.FC = ({ setSelectedTab("costs"); } else if (matchesKeybind(e, KEYBINDS.REVIEW_TAB)) { e.preventDefault(); - // If already on Review tab, focus the panel - if (selectedTab === "review") { - setFocusTrigger((prev) => prev + 1); - } else { - setSelectedTab("review"); - } + setSelectedTab("review"); + setFocusTrigger((prev) => prev + 1); } };