-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Entry/Win] Fixed cursor jumping to the beginning of a PasswordBox #6841
Conversation
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.
Something has gone wrong. Not sure here or before, but the text is all flashy.
Also, to make things easier it might be worth seeing why we assign the text multiple times... I think on each char, we should just be reading the text and replacing with the obfuscated value. When it is a password mode, we should never assign any plain text at all.
I probably should have shown, but it is not obvious on a recording, but if you hold down a key, then the entire textbox freezes and shows all text.
Might be a bit hard to see as my fps probably was not high enough, but each char causes the full plain text to appear. You can see this in one instance here though.
Media1.mp4
Enjoy the typing sounds as I forgot to mute :)
…try control * Password is not longer being set as plain text after the text is transformed
Description of Change
Fixes an odd behavior where the cursor jumps to the beginning of the entry when:
IsPassword
property is set toTrue
.TextTransform
is setThis PR also includes a validation that avoids the Text being transformed when the
IsPassword
is set toTrue
Issues Fixed
Fixes #5401
Fixes #6870