Fix mouse clicks on remote-open-folder UI (#19851)

Also change Zed's standard style to use
`.track_focus(&self.focus_handle(cx))`, instead of
`.track_focus(&self.focus_handle)`, to catch these kinds of errors more
easily in the future.

Release Notes:

- N/A

---------

Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
Mikayla Maki
2024-10-28 12:55:55 -07:00
committed by GitHub
co-authored by Conrad
parent 826d83edfe
commit 80f89059aa
20 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -348,7 +348,7 @@ impl Render for ContextMenu {
.min_w(px(200.))
.max_h(vh(0.75, cx))
.overflow_y_scroll()
.track_focus(&self.focus_handle)
.track_focus(&self.focus_handle(cx))
.on_mouse_down_out(cx.listener(|this, _, cx| this.cancel(&menu::Cancel, cx)))
.key_context("menu")
.on_action(cx.listener(ContextMenu::select_first))