diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 18289a9851..7ca6af8008 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -6812,6 +6812,16 @@ impl Editor { return; } + if self + .context_menu + .write() + .as_mut() + .map(|menu| menu.select_first(self.project.as_ref(), cx)) + .unwrap_or(false) + { + return; + } + if matches!(self.mode, EditorMode::SingleLine { .. }) { cx.propagate(); return;