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.

agent_ui: Fix inconsistent Rules keybinding in Toggle Agent Menu (#54420)

galuis11680ab74812545
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs
index 7f96b1c28ab..19d85807380 100644
--- a/crates/agent_ui/src/agent_panel.rs
+++ b/crates/agent_ui/src/agent_panel.rs
@@ -1498,6 +1498,7 @@ impl AgentPanel {
window: &mut Window,
cx: &mut Context<Self>,
) {
+ window.focus(&self.focus_handle, cx);
self.agent_panel_menu_handle.toggle(window, cx);
}