added hover state check in element key listener

This commit is contained in:
effdotsh
2024-07-12 16:34:42 -04:00
parent 6eeec9b403
commit 4812d260df

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)
})
}