Allow disabled TextInput to still be interacted with#2262
Allow disabled TextInput to still be interacted with#2262hecrj merged 1 commit intoiced-rs:masterfrom
TextInput to still be interacted with#2262Conversation
Yes please, imo TextEditor is a TextInput on steroids, it should have all the behavior of TextInput plus more features. |
Now that I've taken a closer look at the TextEditor architecture, it seems impossible to add this, as the TextEditor's state is held by the user. This means that the user has to provide a way to manipulate the state via the set_action method, but that would enable the text input instead. (Actually, it seems like the end user can just discard actions by the TextEditor that would modify the file contents, so it would pretty much be the same as a normal display.) What would be more appropriate would be to have a separate TextDisplay or similar widget that provides copy/paste capabilities and maybe some additional customisation options. |
|
@Koranir |
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
d9b80ac to
9572bd1
Compare
hecrj
left a comment
There was a problem hiding this comment.
Thanks!
Made some changes here and there. Hopefully I didn't break anything.
Resolves #1880
Follows Firefox's text selection usage (i.e. no blinking cursor, arrow keys don't do anything unless shift is pressed, cursor click position is remembered).
Draft for the following reasons:
TextEditors as well?