Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

TextBox text unselected when getting focus trough mouse click.

Open mateli opened this issue 5 months ago • 1 comments

Describe the bug

If a textbox get focus by clicking then selected text is deselected.

To Reproduce

mybox.GotFocus += (_, _) => mybox.SelectAll();

Expected behavior

With the code above mybox should whenever it get focus select all text which it does. However it seems that when it get's focus from a pointer event it deselects all text and it does that after the focus event code has been run.

Avalonia version

11.1.3

OS

No response

Additional context

No response

mateli avatar Aug 27 '24 12:08 mateli