From 5d860e22864d3d5e2842007b5d4dbb71c2738d3c Mon Sep 17 00:00:00 2001 From: Ephram Date: Mon, 15 Jul 2024 11:11:14 -0400 Subject: [PATCH] Fix selectable popover dismissing on key press (#14368) Release Notes: - Fixed dismissal bug included in #12918 --- crates/editor/src/element.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index e12005f16d..5a560cfd04 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -408,8 +408,10 @@ impl EditorElement { if phase != DispatchPhase::Bubble { return; } - editor.update(cx, |editor, cx| { + if editor.hover_state.focused(cx) { + return; + } Self::modifiers_changed(editor, event, &position_map, &text_hitbox, cx) }) }