iced
iced copied to clipboard
Disabled TextInput should still allow mouse interaction, selection and copying
Is there an existing issue for this?
- [X] I have searched the existing issues.
Is this issue related to iced?
- [X] My hardware is compatible and my graphics drivers are up-to-date.
What happened?
impl iced::Application for MyApp {
pub fn view(&self) -> iced::Element<Message> {
TextInput::new("", "Test")
}
}
Copying text from readonly/disabled text input is useful and, from perspective of building UI, it is one of the reasons to use readonly/disabled text input (TextInput::new()) instead of a plain text label (Text::new).
Comparison
Web:
Native Windows:
What is the expected behavior?
I would expect:
- Enabled mouse interaction
- "Arrow" cursor
- Being able to select text
- Being able to copy selected text
Version
0.7
Operative System
Windows
Do you have any log output?
No response