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

LineEdit.editable = false can be edited with double click. #54744

Closed
greenfox1505 opened this issue Nov 8, 2021 · 1 comment · Fixed by #54339
Closed

LineEdit.editable = false can be edited with double click. #54744

greenfox1505 opened this issue Nov 8, 2021 · 1 comment · Fixed by #54339
Milestone

Comments

@greenfox1505
Copy link
Contributor

greenfox1505 commented Nov 8, 2021

Godot version

3.4.stable

System information

Win10. Shouldn't matter.

Issue description

You can edit the text in a editable = false LineEdit by doubling clicking a word, holding the 2nd click, and dragging.

Steps to reproduce

In a TextEdit with readonly=true you can double click the text, hold the 2nd click, and drag. This lets you mark full words without needing to be careful about word edges. This is expected behavior.

However, in a LineEdit with editable=false doing the same double click, hold 2nd click, and drag the word you originally clicked moves along with it.

Minimal reproduction project

Line Edit Error.zip

@greenfox1505
Copy link
Contributor Author

Also: TextEdit has a readonly flag but LineEdit has an editable flag. this isn't a bug so much as annoying inconsistency. I believe there is other inconsistency between these two as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants