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 LineEdit word mode when there are no more words #96038

Merged

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Aug 24, 2024

LineEdit did not properly handle word mode (holding control) while moving the caret or using backspace or delete and there were no more words, only symbols.

Try it on only symbols like {} or mixed words and symbols like {test}.
You won't be able to move the caret to the start or end of the text, and backspace/delete won't remove to the start/end of the text when holding control.

Also fixed TextEdit since it had this same problem with delete if there were no words.
Added tests for TextEdit. I could start a new test file for LineEdit if we want.

Updated the comments for each of them for consistency and accuracy, since its not about glyphs.

@kitbdev kitbdev requested review from a team as code owners August 24, 2024 16:32
@AThousandShips AThousandShips added this to the 4.4 milestone Aug 24, 2024
@akien-mga akien-mga merged commit f69de1c into godotengine:master Sep 4, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@kitbdev kitbdev deleted the fix-line-edit-caret-word-mode branch September 4, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants