The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 02:45 UTC
fix(web): use the configured panel shortcut on the PR page (#11292)
Bilal Bakr committed
Sep 12, 2026 at 00:54 UTC
15c6167bc48922c9359235d6eee11259f2164d1d
1 file changed
+9
-2
apps/web/src/routes/_chat.pull-requests.tsx
+9
-2
@@ -114,7 +114,7 @@ import { WorkspacePageContainer } from "../components/WorkspacePageContainer";
114
import { WorkspacePageHeader } from "../components/WorkspacePageHeader";
115
import { isCommandPaletteOpen } from "../commandPaletteBus";
116
import { isElectron } from "../env";
117
-import { resolveShortcutCommand } from "../keybindings";
117
+import { resolveShortcutCommand, shortcutLabelForCommand } from "../keybindings";
118
import { isTerminalFocused } from "../lib/terminalFocus";
119
import { PanelLayoutControls } from "../components/chat/PanelLayoutControls";
120
import { Button } from "../components/ui/button";
@@ -1577,7 +1577,7 @@ function PullRequestsRouteView() {
1577
terminalShortcutLabel={null}
1578
rightPanelAvailable={rightPanelAvailable}
1579
rightPanelOpen={rightPanelState.isOpen}
1580
- rightPanelShortcutLabel={null}
1580
+ rightPanelShortcutLabel={shortcutLabelForCommand(keybindings, "rightPanel.toggle")}
1581
rightPanelUnavailableLabel="Select a pull request first"
1582
liveAgentCount={0}
1583
onToggleTerminal={() => undefined}
@@ -1914,6 +1914,12 @@ function PullRequestsRouteView() {
1914
event.stopPropagation();
1915
if (!event.repeat) closeSurface(activePullRequestSurface);
1916
});
1917
+ const toggleRightPanelFromShortcut = useEffectEvent((event: KeyboardEvent) => {
1918
+ if (!rightPanelAvailable) return;
1919
+ event.preventDefault();
1920
+ event.stopPropagation();
1921
+ if (!event.repeat) toggleRightPanel();
1922
+ });
1923
useEffect(() => {
1924
const onKeyDown = (event: KeyboardEvent) => {
1925
if (event.defaultPrevented || isCommandPaletteOpen()) return;
@@ -1921,6 +1927,7 @@ function PullRequestsRouteView() {
1927
context: { terminalFocus: isTerminalFocused() },
1928
});
1929
if (command === "rightPanel.close") closeActiveSurfaceFromShortcut(event);
1930
+ if (command === "rightPanel.toggle") toggleRightPanelFromShortcut(event);
1931
if (command === "thread.copyReference") copyPullRequestFromShortcut(event);
1932
};
1933
window.addEventListener("keydown", onKeyDown);