Open Chat with Cmd+K as well as Ctrl+K

Cmd is the natural modifier on a Mac. Like Option+K, it also opens Chat
from the terminal, where Ctrl+K stays kill-line.
This commit is contained in:
2026-11-13 16:02:31 +00:00
parent ccc80a9a8d
commit c3c2c1bbc9
5 changed files with 75 additions and 48 deletions
+4 -2
View File
@@ -416,9 +416,11 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
return true;
}
// Ctrl+K is the terminal's kill-line while the terminal has the keyboard;
// Alt+K still opens Chat there.
// Alt+K and Cmd+K still open Chat there.
if (shellChatShortcut(event, keyboard) &&
(keyboard.isAltPressed || !primaryFocusIsTypingSurface())) {
(keyboard.isAltPressed ||
keyboard.isMetaPressed ||
!primaryFocusIsTypingSurface())) {
if (event is KeyDownEvent) _openChat();
return true;
}