Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix enter to select model in agent panel (#34846)

Ben Kunkle1a1715766f0f
diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json
index 6aba27fec8f..9585bcdecd2 100644
--- a/assets/keymaps/default-linux.json
+++ b/assets/keymaps/default-linux.json
@@ -277,7 +277,7 @@
}
},
{
- "context": "MessageEditor > Editor && !use_modifier_to_send",
+ "context": "MessageEditor && !Picker > Editor && !use_modifier_to_send",
"bindings": {
"enter": "agent::Chat",
"ctrl-enter": "agent::ChatWithFollow",
@@ -288,7 +288,7 @@
}
},
{
- "context": "MessageEditor > Editor && use_modifier_to_send",
+ "context": "MessageEditor && !Picker > Editor && use_modifier_to_send",
"bindings": {
"ctrl-enter": "agent::Chat",
"enter": "editor::Newline",
diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json
index ba903c07821..9a72bc912cf 100644
--- a/assets/keymaps/default-macos.json
+++ b/assets/keymaps/default-macos.json
@@ -318,7 +318,7 @@
}
},
{
- "context": "MessageEditor > Editor && !use_modifier_to_send",
+ "context": "MessageEditor && !Picker > Editor && !use_modifier_to_send",
"use_key_equivalents": true,
"bindings": {
"enter": "agent::Chat",
@@ -330,7 +330,7 @@
}
},
{
- "context": "MessageEditor > Editor && use_modifier_to_send",
+ "context": "MessageEditor && !Picker > Editor && use_modifier_to_send",
"use_key_equivalents": true,
"bindings": {
"cmd-enter": "agent::Chat",