Add `.id` method and `text_editor::focus` task
This functionality adds the ability to programmatically focus a text_editor widget.
- [x] Implemented following the focus handling of the
text_inputwidget. - [x] Updated an example to make use of the feature
This seems to be contributing to existing unnecessary code duplication. I'm exploring some cleanup in https://github.com/iced-rs/iced/pull/2745 .
Just merge this already. We need to be able to focus a text editor.
@hecrj Please merge this, we need the ability to focus the text_editor, can't implement autocompletion for text editor without this.
@hecrj Please merge this, we need the ability to focus the text_editor, can't implement autocompletion for text editor without this.
Why can't you just copy and paste the text editor into your own app and implement this yourself if you're in a hurry to use this solution?
@airstrike I tried to copy the text_editor.rs into the project and it depends on some private modules, I don't want to end up to copy too many files to my project.
Is there any problem with merging this?
I don't think there is much gained by commenting on this PR. Unless you have something to add please just put a :+1: on the top comment, I don't think more comments will help, let's not spam maintainers.