-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Expose has_undo()
and has_redo()
of LineEdit
#97167
Conversation
94c9440
to
9252190
Compare
9252190
to
5545ab1
Compare
5545ab1
to
f7a7ecc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont see any reason why it shouldn't be exposed
I think this might need a more clear name, |
It's better to follow the TextEdit convention I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and makes sense for parity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to expose. I agree with keeping the names consistent with TextEdit.
has_undo()
and has_redo()
of LineEdit
Thanks! |
Some progress towards godotengine/godot-proposals#9207.
When using LineEdit, you might want to make a custom context menu or other utility for Undo/Redo. One thing that makes this harder than it needs to be is the inability to easily tell if LineEdits can undo/redo, which makes it impossible to disable their corresponding buttons:
TextEdits already expose this.