Code format update for onKeyDown / onKeyUp

Fixed the code format so it looks more proper to the other voids in this class
This commit is contained in:
Byron 2021-11-18 09:12:19 -05:00 committed by GitHub
commit e7f12f4338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}