iced icon indicating copy to clipboard operation
iced copied to clipboard

Disabled TextInput should still allow mouse interaction, selection and copying

Open earshinov opened this issue 2 years ago • 0 comments

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")
    }
}

image

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:

image

Native Windows:

image

What is the expected behavior?

I would expect:

  1. Enabled mouse interaction
  2. "Arrow" cursor
  3. Being able to select text
  4. Being able to copy selected text

Version

0.7

Operative System

Windows

Do you have any log output?

No response

earshinov avatar May 28 '23 13:05 earshinov