Merge commit 'ff6a6e18d2408c4b5f24c0ded0e293240dc8d7aa' into pipelines/run-20261112-0053-remove-templates-from-settings-b935
This commit is contained in:
@@ -689,6 +689,13 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
AppRoute? _chatWorkspaceRoute;
|
||||
Set<String>? _availableChatSessionIds;
|
||||
|
||||
/// After Ctrl+K or Alt+K shows Chat: the keyboard goes to the open chat's
|
||||
/// composer, if a chat is open.
|
||||
void _focusOpenChatComposer() {
|
||||
final id = _chatWorkspaceRoute?.chatSessionId;
|
||||
if (id != null) _chatRuntime.composerFocus.request(id);
|
||||
}
|
||||
|
||||
void _selectDestination(AppDestination destination) {
|
||||
final current = tabForRoute(_delegate.route);
|
||||
final last = _tabRoutes[destination];
|
||||
@@ -825,6 +832,7 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
runningRunCount: counts.running,
|
||||
destination: _destinationOf(route.kind),
|
||||
onDestinationSelected: _selectDestination,
|
||||
onOpenChat: _focusOpenChatComposer,
|
||||
onClosePage: () => _delegate.goTo(
|
||||
_bodyRoutes[AppDestination.pipelines] ?? AppRoute.pipelines,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user