iced icon indicating copy to clipboard operation
iced copied to clipboard

Add `.id` method and `text_editor::focus` task

Open sgued opened this issue 1 year ago • 2 comments

This functionality adds the ability to programmatically focus a text_editor widget.

  • [x] Implemented following the focus handling of the text_input widget.
  • [x] Updated an example to make use of the feature

sgued avatar Oct 29 '24 20:10 sgued

This seems to be contributing to existing unnecessary code duplication. I'm exploring some cleanup in https://github.com/iced-rs/iced/pull/2745 .

kiilerix avatar Jan 23 '25 15:01 kiilerix

Just merge this already. We need to be able to focus a text editor.

IanTerzo avatar May 23 '25 23:05 IanTerzo

@hecrj Please merge this, we need the ability to focus the text_editor, can't implement autocompletion for text editor without this.

Zane-XY avatar Jul 21 '25 12:07 Zane-XY

@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 avatar Jul 21 '25 15:07 airstrike

@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.

Zane-XY avatar Jul 23 '25 09:07 Zane-XY

Is there any problem with merging this?

janTatesa avatar Oct 28 '25 13:10 janTatesa

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.

sgued avatar Oct 28 '25 16:10 sgued