NeoUI - Fix first-used force active textedit not properly set cursor#1715
Merged
nullsystem merged 1 commit intoNeotokyoRebuild:masterfrom Feb 22, 2026
Merged
Conversation
sunzenshen
previously approved these changes
Feb 21, 2026
Contributor
sunzenshen
left a comment
There was a problem hiding this comment.
To be honest, not sure how to test if there are no servers up for this branch version, but looks sensible enough to me.
Collaborator
Author
@sunzenshen I've tested it using a local server, which is password protected by default so don't need to touch other text inputs before using password input. |
Password input textedit have forced active and if that textedit is used first, the cursor are not set properly and when the player enters a character the cursor goes left of the character, not right. Just add an if-statement to check if selection variables set to -1 and widget is active, set it to the size of the current text. Also reset it to -1 on changing context.
e1559f8 to
3eeffab
Compare
sunzenshen
approved these changes
Feb 21, 2026
DESTROYGIRL
approved these changes
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Password input textedit have forced active and if that textedit is used first, the cursor are not set properly and when the player enters a character the cursor goes left of the character, not right. Just add an if-statement to check if selection variables set to -1 and widget is active, set it to the size of the current text.
Test it with local server, make sure no other text edits are touched, create a local server then go to server list, enter that local server, see that password section, and start typing. The cursor should stay on the most-right side/end of the password text input.
Toolchain