浏览代码

Mark selection click events as handled.

Steven Kirk 10 年之前
父节点
当前提交
77d8db6b2d
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/Perspex.Controls/ListBox.cs
  2. 2 2
      src/Perspex.Controls/Primitives/TabStrip.cs

+ 2 - 2
src/Perspex.Controls/ListBox.cs

@@ -38,7 +38,7 @@ namespace Perspex.Controls
 
             if (e.NavigationMethod == NavigationMethod.Directional)
             {
-                UpdateSelectionFromEventSource(
+                e.Handled = UpdateSelectionFromEventSource(
                     e.Source,
                     true,
                     (e.InputModifiers & InputModifiers.Shift) != 0);
@@ -52,7 +52,7 @@ namespace Perspex.Controls
 
             if (e.MouseButton == MouseButton.Left || e.MouseButton == MouseButton.Right)
             {
-                UpdateSelectionFromEventSource(
+                e.Handled = UpdateSelectionFromEventSource(
                     e.Source,
                     true,
                     (e.InputModifiers & InputModifiers.Shift) != 0,

+ 2 - 2
src/Perspex.Controls/Primitives/TabStrip.cs

@@ -56,7 +56,7 @@ namespace Perspex.Controls.Primitives
 
             if (e.NavigationMethod == NavigationMethod.Directional)
             {
-                UpdateSelectionFromEventSource(e.Source);
+                e.Handled = UpdateSelectionFromEventSource(e.Source);
             }
         }
 
@@ -67,7 +67,7 @@ namespace Perspex.Controls.Primitives
 
             if (e.MouseButton == MouseButton.Left)
             {
-                UpdateSelectionFromEventSource(e.Source);
+                e.Handled = UpdateSelectionFromEventSource(e.Source);
             }
         }
     }