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.

Focus on the history tabs context menu when deploying (#61000)

Joseph T. Lyonse3dd7b462ed8
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 12d9a1e7392..8a5f1202803 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -7192,9 +7192,11 @@ impl GitPanel {
&mut self,
context_menu: Entity<ContextMenu>,
position: Point<Pixels>,
- window: &Window,
+ window: &mut Window,
cx: &mut Context<Self>,
) {
+ window.focus(&context_menu.focus_handle(cx), cx);
+
let subscription = cx.subscribe_in(
&context_menu,
window,