Browse Source
Merge pull request #1757 from AvaloniaUI/fixes/dont-loose-textbox-selection-with-right-click
dont clear textbox selection when right clicking.
pull/1760/head
Steven Kirk
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/TextBox.cs
|
|
|
@ -557,7 +557,7 @@ namespace Avalonia.Controls |
|
|
|
var index = CaretIndex = _presenter.GetCaretIndex(point); |
|
|
|
var text = Text; |
|
|
|
|
|
|
|
if (text != null) |
|
|
|
if (text != null && e.MouseButton == MouseButton.Left) |
|
|
|
{ |
|
|
|
switch (e.ClickCount) |
|
|
|
{ |
|
|
|
|