Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Feature]: Keyboard shortcut to switch between browser and simulator tabs in the preview pane #17915

Closedn0ah37(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.

Area

apps/web (right panel / preview pane), keybindings

Problem

The preview pane holds both web browser tabs and simulator/device tabs. There is no keyboard shortcut to move between them.

In the default keybindings, mod+shift+[ and mod+shift+] are bound to thread.previous and thread.next with no when clause, so they switch threads instead of preview tabs. I checked ~/.t3/userdata/keybindings.json. No command in the defaults cycles preview or right-panel tabs. Existing shortcuts in the panel cover only zoom (preview.zoomIn and friends), refresh, and the URL field.

Requested behavior

  • A command such as preview.tab.previous and preview.tab.next that cycles tabs in the preview pane, bound by default to mod+shift+[ and mod+shift+] when previewFocus is set.
  • Those keys keep thread.previous and thread.next when the preview is not focused.
  • Users can rebind the commands in keybindings.json.

Open question

A separate pane for simulators, distinct from the browser pane, may serve better than mixing both in one panel. The shortcut is useful either way.

  • #4147 (closed): close the active right-panel tab with Cmd+W
  • #4925 (closed): per-project default right panel tabs
  • #6273 (open): three controls jammed together at the chat/preview boundary

🤖 Generated with Claude Code

Sign in to join this conversation.