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.

Add key context to ConversationEditor

Antonio Scandurra80f315106d88
diff --git a/crates/assistant2/src/assistant_panel.rs b/crates/assistant2/src/assistant_panel.rs
index 2a589afc4f5..b926cb51efd 100644
--- a/crates/assistant2/src/assistant_panel.rs
+++ b/crates/assistant2/src/assistant_panel.rs
@@ -2474,6 +2474,7 @@ impl Render for ConversationEditor {
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
div()
+ .key_context("ConversationEditor")
.size_full()
.relative()
.capture_action(cx.listener(ConversationEditor::cancel_last_assist))