From 2e6d044bac429addab55645f53f6395c206e15fa Mon Sep 17 00:00:00 2001 From: moshyfawn Date: Mon, 6 May 2024 16:51:02 -0400 Subject: [PATCH] Fix Collab context menu dismissal (#11414) Closes: #11413 Release Notes: - Fixed Collab panel context menu dismissal with `Escape` key ([#11413](https://github.com/zed-industries/zed/issues/11413)). --- crates/collab_ui/src/collab_panel.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index d70bd48f57..5b3687f0db 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -1408,6 +1408,11 @@ impl CollabPanel { }); } + if self.context_menu.is_some() { + self.context_menu.take(); + cx.notify(); + } + self.update_entries(false, cx); }