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 dropdowns on open

Piotr Osiewicza5d9a10d7bf4
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs
index 1fdce6f186e..b68095878dc 100644
--- a/crates/collab_ui/src/collab_titlebar_item.rs
+++ b/crates/collab_ui/src/collab_titlebar_item.rs
@@ -440,6 +440,7 @@ impl CollabTitlebarItem {
})
.detach();
self.project_popover.take();
+ cx.focus(&view);
self.branch_popover = Some(view);
}
}
@@ -473,6 +474,7 @@ impl CollabTitlebarItem {
cx.notify();
})
.detach();
+ cx.focus(&view);
this.branch_popover.take();
this.project_popover = Some(view);
cx.notify();