Chat: Ctrl+K / Alt+K on Chat opens a quick switcher for the open chats

On Chat the chord now toggles a centred dialog (bottom sheet on a phone)
with an autofocused filter over the open chats in list order; Ctrl+N/Down
and Ctrl+P/Up move the wrapping selection, Enter opens the chat as Ctrl+Tab
does (pane reused, composer focused), Esc or the chord closes it. From other
destinations the chord still jumps to Chat. Ctrl+N/Ctrl+P are handled so the
web page prevents their defaults (Ctrl+P no longer prints); a browser tab
keeps Ctrl+N reserved, documented in the help and notes/chat-quick-switch.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 12:27:39 +00:00
parent 26b1c00094
commit 141661e355
17 changed files with 1127 additions and 4 deletions
+7
View File
@@ -810,6 +810,12 @@ class _PipelinesAppState extends State<PipelinesApp>
if (id != null) _chatRuntime.composerFocus.request(id);
}
/// Ctrl+K / Alt+K on Chat: the mounted chat screen's quick switcher, or
/// the open chat's composer while no chat screen is mounted to show it.
void _toggleChatQuickSwitch() {
if (!_chatRuntime.quickSwitch.toggle()) _focusOpenChatComposer();
}
void _selectDestination(AppDestination destination) {
// Settings is shown from its own nav item and has no Back, so its route
// (filed under the Pipelines tab) must not trap the Pipelines item: that
@@ -1029,6 +1035,7 @@ class _PipelinesAppState extends State<PipelinesApp>
onDestinationSelected: _selectDestination,
onDestinationReselected: _reselectDestination,
onOpenChat: _focusOpenChatComposer,
onChatQuickSwitch: _toggleChatQuickSwitch,
destinationBodies: {
AppDestination.pipelines: (_) => FirstRunWalkthroughGate(
store: _walkthroughStore,