Assign editors as text input handlers

Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-11-07 15:44:00 -08:00
parent b2ae08b159
commit bd12e3edb6
3 changed files with 402 additions and 396 deletions

View file

@ -2624,7 +2624,7 @@ impl Element<Editor> for EditorElement {
});
if editor.focus_handle.is_focused(cx) {
cx.set_input_handler(editor.handle);
cx.handle_text_input();
}
cx.with_content_mask(ContentMask { bounds }, |cx| {