diff --git a/src/Calculator/Controls/CalculatorButton.cs b/src/Calculator/Controls/CalculatorButton.cs index 4ef323d5..c83dd54f 100644 --- a/src/Calculator/Controls/CalculatorButton.cs +++ b/src/Calculator/Controls/CalculatorButton.cs @@ -120,23 +120,15 @@ namespace CalculatorApp protected override void OnKeyDown(KeyRoutedEventArgs e) { - // Ignore the Enter key - if (e.Key == VirtualKey.Enter) - { - return; - } - + // Ignore the Enter key. + if (e.Key == VirtualKey.Enter) { return; } base.OnKeyDown(e); } protected override void OnKeyUp(KeyRoutedEventArgs e) { - // Ignore the Enter key - if (e.Key == VirtualKey.Enter) - { - return; - } - + // Ignore the Enter key. + if (e.Key == VirtualKey.Enter) { return; } base.OnKeyUp(e); }