Skip to content

Commit

Permalink
Align AI chat toggle keybinding with VS Code on macOS (#14850)
Browse files Browse the repository at this point in the history
On macOS, assign Control+Command+I keybinding and on other platforms
Control+Alternate+I to align with VS Code on Mac and not clash with
Chrome devtools on all platforms.

Fixes #14814

Signed-off-by: Christian W. Damus <[email protected]>
  • Loading branch information
cdamus authored Feb 6, 2025
1 parent b247eb3 commit 6c05489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ai-chat-ui/src/browser/ai-chat-ui-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// *****************************************************************************

import { inject, injectable } from '@theia/core/shared/inversify';
import { CommandRegistry, QuickInputButton, QuickInputService, QuickPickItem } from '@theia/core';
import { CommandRegistry, isOSX, QuickInputButton, QuickInputService, QuickPickItem } from '@theia/core';
import { Widget } from '@theia/core/lib/browser';
import { AI_CHAT_NEW_CHAT_WINDOW_COMMAND, AI_CHAT_SHOW_CHATS_COMMAND, ChatCommands } from './chat-view-commands';
import { ChatAgentLocation, ChatService } from '@theia/ai-chat';
Expand Down Expand Up @@ -52,7 +52,7 @@ export class AIChatContribution extends AbstractViewContribution<ChatViewWidget>
rank: 100
},
toggleCommandId: AI_CHAT_TOGGLE_COMMAND_ID,
toggleKeybinding: 'ctrlcmd+alt+i'
toggleKeybinding: isOSX ? 'ctrl+cmd+i' : 'ctrl+alt+i'
});
}

Expand Down

0 comments on commit 6c05489

Please sign in to comment.