Browse Source
Fix SelectableTextBlock Selection (#15536)
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
pull/17021/head
xLEGiON
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
7 deletions
-
src/Avalonia.Controls/SelectableTextBlock.cs
|
|
|
@ -347,13 +347,9 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (_wordSelectionStart == -1 || index < SelectionStart || index > SelectionEnd) |
|
|
|
{ |
|
|
|
SetCurrentValue(SelectionStartProperty, index); |
|
|
|
SetCurrentValue(SelectionEndProperty, index); |
|
|
|
|
|
|
|
_wordSelectionStart = -1; |
|
|
|
} |
|
|
|
SetCurrentValue(SelectionStartProperty, index); |
|
|
|
SetCurrentValue(SelectionEndProperty, index); |
|
|
|
_wordSelectionStart = -1; |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
|