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

SelectableTextBlock does not work #203

Closed
tomlm opened this issue Dec 13, 2024 · 2 comments · Fixed by #219
Closed

SelectableTextBlock does not work #203

tomlm opened this issue Dec 13, 2024 · 2 comments · Fixed by #219
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@tomlm
Copy link
Collaborator

tomlm commented Dec 13, 2024

Added in Avalonia 11
https://docs.avaloniaui.net/docs/reference/controls/selectable-textblock

@tomlm tomlm added bug Something isn't working enhancement New feature or request labels Dec 13, 2024
@jinek jinek self-assigned this Dec 18, 2024
@jinek
Copy link
Owner

jinek commented Dec 19, 2024

Linux needs special behavior because SelectableTextBlock process the selection when mouse is moved over the text, but linux tty does not send mouse move event.
Thus, on linux we need to handle PointerRelease event and set SelectionStart/End manually.

I could not test, but probably Windows part is working now. Should be visible in GalleryTextBlock page.

@jinek jinek linked a pull request Dec 19, 2024 that will close this issue
@tomlm
Copy link
Collaborator Author

tomlm commented Dec 20, 2024

Windows works great btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants