@devries-cameron20 / t3code-1 / commits / e3949714e3
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): restore the Issues right panel shortcut (#38309)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Bilal Bakr committed Nov 17, 2026 at 23:17 UTC e3949714e3a513c0fa3a6eab0ea3c140f9c5399a
2 files changed +42 -2
apps/web/src/components/issue/IssuesPage.tsx
+20 -2
@@ -32,7 +32,7 @@ import {
32 UserCheckIcon,
33 UsersIcon,
34 } from "lucide-react";
35 -import { Fragment, useEffect, useState, type ReactNode } from "react";
35 +import { Fragment, useEffect, useEffectEvent, useState, type ReactNode } from "react";
36
37 import { RefreshIcon } from "~/components/ui/refresh-icon";
38 import { IssueDetailPanel } from "~/components/issue/IssueDetailPanel";
@@ -70,9 +70,10 @@ import {
70 } from "~/components/ui/empty";
71 import { Menu, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuTrigger } from "~/components/ui/menu";
72 import { SidebarInset } from "~/components/ui/sidebar";
73 +import { isCommandPaletteOpen } from "~/commandPaletteBus";
74 import { isElectron } from "~/env";
75 import { useLiveRefresh } from "~/hooks/useLiveRefresh";
75 -import { shortcutLabelForCommand } from "~/keybindings";
76 +import { resolveShortcutCommand, shortcutLabelForCommand } from "~/keybindings";
77 import { isTerminalFocused } from "~/lib/terminalFocus";
78 import { usePanelAnimationSettings, usePanelPresence } from "~/panelAnimations";
79 import {
@@ -404,6 +405,23 @@ export function IssuesPage() {
405 selectSurfaceInUrl(panelSurface);
406 };
407
408 + const onRightPanelKeyDown = useEffectEvent((event: KeyboardEvent) => {
409 + if (event.defaultPrevented || isCommandPaletteOpen() || panelSurface === null) return;
410 + const command = resolveShortcutCommand(event, keybindings, {
411 + context: { ...getShortcutContext(), rightPanelOpen: rightPanelState.isOpen },
412 + });
413 + if (command !== "rightPanel.toggle") return;
414 + event.preventDefault();
415 + event.stopPropagation();
416 + if (!event.repeat) toggleRightPanel();
417 + });
418 +
419 + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- subscribes to the document right panel shortcut
420 + useEffect(() => {
421 + document.addEventListener("keydown", onRightPanelKeyDown);
422 + return () => document.removeEventListener("keydown", onRightPanelKeyDown);
423 + }, []);
424 +
425 // Every writable scope the workspace has, for the composer.
426
427 const showTracker = groups.length > 1;
scripts/scenarios/issues-shortcut-toggles-right-panel.e2e.ts new
+22
@@ -0,0 +1,22 @@
1 +import { expect } from "e2e";
2 +
3 +import { test, WEB } from "./t3.ts";
4 +
5 +test(
6 + "The right panel shortcut closes and reopens the Issues panel",
7 + WEB,
8 + async ({ t3, app, browser, screen }) => {
9 + await t3.project("demo");
10 + await t3.open("/issues?selectedProjectId=demo&tracker=github&scope=example/demo&key=42");
11 +
12 + const toggle = screen.getByRole("button", "Toggle right panel");
13 + await screen.getByRole("button", { name: "Toggle right panel", pressed: true }).waitFor();
14 +
15 + await browser.keyboard.press("ControlOrMeta+Alt+b");
16 + await app.screenshot("after-close-shortcut");
17 + await expect(toggle).toHaveAttribute("aria-pressed", "false");
18 +
19 + await browser.keyboard.press("ControlOrMeta+Alt+b");
20 + await expect(toggle).toHaveAttribute("aria-pressed", "true");
21 + },
22 +);