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 undo behaves strangely #47562

Closed
mujpao opened this issue Apr 2, 2021 · 0 comments · Fixed by #47728
Closed

LineEdit undo behaves strangely #47562

mujpao opened this issue Apr 2, 2021 · 0 comments · Fixed by #47728
Milestone

Comments

@mujpao
Copy link
Contributor

mujpao commented Apr 2, 2021

Godot version:
4b6e9f3

OS/device including version:
Ubuntu 20.04.2 LTS

Issue description:
The undo operation on the LineEdit node behaves inconsistently and can sometimes undo text that was set from the "Text" property in the inspector, but only if you have made at least one change to the LineEdit since running the scene.

Steps to reproduce:
Open the minimal reproduction project.
Run the scene.
Select the LineEdit node, and try pressing undo. Nothing happens.
Try making a small change to the LineEdit text, and then undo that change. Undoing removes both the text you added and the initial text that was set from the inspector, all in one step.
lineedit_undo

On the other hand, selecting undo on the TextEdit node removes the initial text that was set from the inspector, even if you have not made any changes. This is probably how LineEdit should work?
textedit_undo

Minimal reproduction project:
lineedit-undo-mrp.zip

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