Fix selectable popover dismissing on key press (#14368)

Release Notes:

- Fixed dismissal bug included in #12918
This commit is contained in:
Ephram authored and GitHub committed 2024-07-15 09:11:14 -06:00
1 parent 021efe60c1
commit 2f29ff7bcd
1 file changed
+3 -1
+3 -1
View File
@@ -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)
})
}