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

Fix removing last digit in spinbox while update_on_text_changed is true #99721

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented Nov 26, 2024

Fixes: #99281

As the issue explains currently if you have update_on_text_changed set to true, you are unable to delete the last digit which is janky since it gets appended to any subsequent digits that you type. This PR fixes it by ignoring submittals of empty text and if empty texted is accepted via enter/escape the previous value is used.

2024-11-26.15-33-43.mp4

@ryevdokimov ryevdokimov requested a review from a team as a code owner November 26, 2024 20:42
@AThousandShips AThousandShips added bug regression topic:gui cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Nov 27, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Nov 27, 2024
@akien-mga akien-mga changed the title Fix removing last digit in spinbox while update_on_text_changed is true Fix removing last digit in spinbox while update_on_text_changed is true Dec 17, 2024
@akien-mga akien-mga merged commit 1c94d13 into godotengine:master Dec 17, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release regression topic:gui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpinBox - cannot remove last digit in SpinBox
4 participants