summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs')
-rw-r--r--win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs b/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
index 5003068d1..adf17eb46 100644
--- a/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
+++ b/win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs
@@ -179,7 +179,7 @@ namespace HandBrakeWPF.Controls.SplitButton
throw new ArgumentNullException("e");
}
- if (Key.Down == e.Key || Key.Up == e.Key)
+ if (e.Key == Key.Down || e.Key == Key.Up)
{
this.Dispatcher.BeginInvoke((Action)this.OpenButtonMenu);
}
@@ -286,7 +286,7 @@ namespace HandBrakeWPF.Controls.SplitButton
this.contextMenu.HorizontalOffset = desiredOffset.X - currentOffset.X;
this.contextMenu.VerticalOffset = desiredOffset.Y - currentOffset.Y;
- if (FlowDirection.RightToLeft == this.FlowDirection)
+ if (this.FlowDirection == FlowDirection.RightToLeft)
{
this.contextMenu.HorizontalOffset *= -1;
}