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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user