diff --git a/src/Avalonia.Controls/TextBox.cs b/src/Avalonia.Controls/TextBox.cs index 91538df3e31..c36b17b5058 100644 --- a/src/Avalonia.Controls/TextBox.cs +++ b/src/Avalonia.Controls/TextBox.cs @@ -1578,6 +1578,13 @@ protected override void OnPointerPressed(PointerPressedEventArgs e) break; case 2: + if (IsPasswordBox && !RevealPassword) + { + // double-clicking in a cloaked single-line password box selects all text + // see https://github.com/AvaloniaUI/Avalonia/issues/14956 + goto case 3; + } + if (!StringUtils.IsStartOfWord(text, caretIndex)) { selectionStart = StringUtils.PreviousWord(text, caretIndex);