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.

assistant2: Propagate move up action to inline picker from message editor (#23416)

Agus Zubiagac825bb492d11
diff --git a/crates/assistant2/src/message_editor.rs b/crates/assistant2/src/message_editor.rs
index a75ab6416b0..cc3545889a3 100644
--- a/crates/assistant2/src/message_editor.rs
+++ b/crates/assistant2/src/message_editor.rs
@@ -241,7 +241,9 @@ impl MessageEditor {
}
fn move_up(&mut self, _: &MoveUp, cx: &mut ViewContext<Self>) {
- if self.context_picker_menu_handle.is_deployed() {
+ if self.context_picker_menu_handle.is_deployed()
+ || self.inline_context_picker_menu_handle.is_deployed()
+ {
cx.propagate();
} else {
cx.focus_view(&self.context_strip);