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

[Entry/Win] Fixed cursor jumping to the beginning of a PasswordBox #6841

Merged
merged 14 commits into from
May 6, 2022
Merged

[Entry/Win] Fixed cursor jumping to the beginning of a PasswordBox #6841

merged 14 commits into from
May 6, 2022

Conversation

SotoiGhost
Copy link
Contributor

@SotoiGhost SotoiGhost commented May 5, 2022

Description of Change

Fixes an odd behavior where the cursor jumps to the beginning of the entry when:

  • IsPassword property is set to True.
  • A TextTransform is set
  • A custom converter is set

This PR also includes a validation that avoids the Text being transformed when the IsPassword is set to True

Issues Fixed

Fixes #5401
Fixes #6870

@mattleibow mattleibow self-requested a review May 5, 2022 07:04
@mattleibow mattleibow added this to the 6.0.300 milestone May 5, 2022
@mattleibow mattleibow added t/bug Something isn't working platform/windows 🪟 legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-entry Entry labels May 5, 2022
Copy link
Member

@mattleibow mattleibow left a 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 :)

@Redth Redth merged commit d5b3099 into dotnet:main May 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
5 participants