You can’t. You will need to catch the Escape key press event and use it to re-focus the text editor, although I would say your best bet is to fork Iced and remove that behavior from it.
I think that creating a new widget that is just a wrapper around the text_editor and define the on_event method of the Widget Trait.
In this method, if the event is a escape key press, ignore, else transfer the event to the underlying text_editor.
Similarly to what we did for the typed_input and the number_input in iced_aw