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

Select all input for double-clicks in TextBox with PasswordChar #14973

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Select all input for double-clicks in TextBox with PasswordChar #14973

merged 1 commit into from
Mar 15, 2024

Conversation

nil4
Copy link
Contributor

@nil4 nil4 commented Mar 14, 2024

What does the pull request do?

Double-clicks in a TextBox with PasswordChar set are handled by selecting all input, when the password
is not revealed.

If the password text is revealed, the pre-existing word-based selection model remains (the word closest to the pointer position is selected.)

Related to #14956

What is the current behavior?

Double-clicking currently selects individual words/parts of a cloaked password.

What is the updated/expected behavior with this PR?

If the password is not revealed, then double-clicking selects the entire input.

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #14956

…xt when the password is not revealed.

If the password text is revealed, the pre-existing word-based selection model remains (the closest word to the pointer position is selected.)

Related to #14956
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0046182-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added the backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch label Mar 15, 2024
@maxkatz6 maxkatz6 added this pull request to the merge queue Mar 15, 2024
Merged via the queue into AvaloniaUI:master with commit fd15b6b Mar 15, 2024
6 checks passed
maxkatz6 pushed a commit that referenced this pull request Apr 6, 2024
…xt when the password is not revealed. (#14973)

If the password text is revealed, the pre-existing word-based selection model remains (the closest word to the pointer position is selected.)

Related to #14956
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 20, 2024
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.

Double-clicks in TextBox with PasswordChar should select all text, not individual words
3 participants