Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled TextInput should still allow mouse interaction, selection and copying #1880

Open
2 tasks done
earshinov opened this issue May 28, 2023 · 0 comments · May be fixed by #2262
Open
2 tasks done

Disabled TextInput should still allow mouse interaction, selection and copying #1880

earshinov opened this issue May 28, 2023 · 0 comments · May be fixed by #2262
Labels
bug Something isn't working text widget
Milestone

Comments

@earshinov
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • 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 earshinov added the bug Something isn't working label May 28, 2023
@hecrj hecrj added the text label May 31, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 31, 2023
@hecrj hecrj added the widget label May 31, 2023
@hecrj hecrj modified the milestones: 0.10.0, 0.11.0 Jul 28, 2023
@hecrj hecrj modified the milestones: 0.12, 0.13 Feb 11, 2024
@Koranir Koranir linked a pull request Feb 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working text widget
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants