From e7f12f4338519d8edde5d3812153949fc129c214 Mon Sep 17 00:00:00 2001 From: Byron <53088136+byronbytes@users.noreply.github.com> Date: Thu, 18 Nov 2021 09:12:19 -0500 Subject: [PATCH] Code format update for onKeyDown / onKeyUp Fixed the code format so it looks more proper to the other voids in this class --- src/Calculator/Controls/CalculatorButton.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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); }