Explorar el Código

Caused action columns to only get called on left mous button pressed.

Kenric Nugteren hace 1 año
padre
commit
66590d99ff
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      inabox.wpf/DynamicGrid/DynamicGrid.cs

+ 2 - 1
inabox.wpf/DynamicGrid/DynamicGrid.cs

@@ -1398,11 +1398,12 @@ namespace InABox.DynamicGrid
         {
             if (!IsEnabled)
                 return;
-            
+
             var dac = ColumnList[e.RowColumnIndex.ColumnIndex] as DynamicActionColumn;
             if (dac != null)
             {
                 var bRefresh = false;
+                if(e.ChangedButton == MouseButton.Left)
                 {
                     foreach (var row in SelectedRows)
                         if (dac.Action?.Invoke(row) == true)