Bug: request_focus() on editor does not focus the editor
Right now requesting focus on Text Editor does not focus the view correctly, but focus one of the outer wrapper instead, what make editor not reacting on the keyboard strokes.
One way you can do this is to use the id that the editor stores
editor_a.editor().editor_view_id
if you request focus using that id, the correct view will get keyboard events
Hey, tried to do it on floem editor example:
...but as soon as you press any keyboard key, the app panics:
But it works fine as long as you don't clear the Document before requesting focus. If you clear it, then it panics after first keystroke. Any idea what it may cause it?
Another way to try to focus editor that fails: #392