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.

Fix selectable popover dismissing on key press (#14368)

Ephram5d860e22864d
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index e12005f16db..5a560cfd048 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)
})
}