14b7687d4e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.7 KiB
2.7 KiB
Cycling the chat panes on screen
Alt+] and Alt+[ move the keyboard to the next or previous chat pane on screen (wide layouts only). On macOS and iOS, Cmd+] and Cmd+[ do the same.
Keys
- Alt+Tab and Cmd+Tab belong to the OS window switcher. Ctrl+Tab already cycles the open chats, and Alt+` cycles the floating windows. Alt+Y, Alt+K, Alt+L, Alt+T and Ctrl+B are also taken.
- Browsers use Alt+Left and Alt+Right for back and forward. GNOME, Hyprland,
Windows and browsers do not bind Alt+[ or Alt+]. The web build handles the
key, so Flutter calls
preventDefault. The capture's keydown recorder shows this (prevented: true). - On a Mac, Option+] and Option+[ type quotes. With Alt, the shortcut matches the key's position, as Option+Y does. Cmd+] and Cmd+[ are the macOS next/previous pair, so Option stays free for typing. On the web, Cmd+[ is Back, and the app prevents that default.
- The shortcut never matches with Shift (Alt+Shift+[ types a brace), Ctrl or AltGr. AltGr is how several layouts type brackets.
- A focused terminal (any
TypingSurface) keeps the keys. Alt+[ is its escape prefix.
Behaviour
- Order: the tiled panes in split-tree order, which is visual order (left before right, top before bottom; the center stage's row in order). Then come the shown floating chat windows in the order they were opened. The cycle wraps around. The shortcut never opens, closes, hides or moves a chat.
- The target's composer takes focus. If nothing in the pane takes focus, a
pane-level focus node takes it. The pane's border flashes in the chat
colour for 700 ms (
ChatPaneFocusFlash). The flash uses the design's corner radius. Under reduced motion it shows for the same time without fading. - It does nothing in these cases: one pane on screen, a phone layout (the stack and the quick switcher handle chats there), a popup or another destination open, or a focused terminal.
- The shortcut is listed in the keyboard shortcuts list (Settings and the Ctrl+? cheatsheet) as "Next or previous chat pane on screen".
Evidence
- Tests:
test/features/chat/chat_pane_cycle_test.dart(three tiles plus a window, forward, backward and wrapping; two tiles plus a window; no-op with one pane and on a phone; terminal keeps the keys) andtest/features/chat/workspace/chat_pane_cycle_test.dart(key matching, labels, wrap). - Capture:
tool/capture/examples/chat-pane-cycle.jsonwithCHROME_PATH=/usr/bin/chromium, at 1600x900.chat-pane-cycle/before.pngshows the left pane focused.chat-pane-cycle/after-alt-bracket.pngwas taken 120 ms after Alt+]: the right pane (api refactor) is active, its composer has the caret, and its purple ring is fading.