Ver código fonte

dont clear textbox selection when right clicking.

Dan Walmsley 7 anos atrás
pai
commit
09892554c4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Avalonia.Controls/TextBox.cs

+ 1 - 1
src/Avalonia.Controls/TextBox.cs

@@ -557,7 +557,7 @@ namespace Avalonia.Controls
             var index = CaretIndex = _presenter.GetCaretIndex(point);
             var index = CaretIndex = _presenter.GetCaretIndex(point);
             var text = Text;
             var text = Text;
 
 
-            if (text != null)
+            if (text != null && e.MouseButton == MouseButton.Left)
             {
             {
                 switch (e.ClickCount)
                 switch (e.ClickCount)
                 {
                 {