mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
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:
parent
d428a768e0
commit
e7f12f4338
1 changed files with 4 additions and 12 deletions
|
@ -120,23 +120,15 @@ namespace CalculatorApp
|
||||||
|
|
||||||
protected override void OnKeyDown(KeyRoutedEventArgs e)
|
protected override void OnKeyDown(KeyRoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Ignore the Enter key
|
// Ignore the Enter key.
|
||||||
if (e.Key == VirtualKey.Enter)
|
if (e.Key == VirtualKey.Enter) { return; }
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
base.OnKeyDown(e);
|
base.OnKeyDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnKeyUp(KeyRoutedEventArgs e)
|
protected override void OnKeyUp(KeyRoutedEventArgs e)
|
||||||
{
|
{
|
||||||
// Ignore the Enter key
|
// Ignore the Enter key.
|
||||||
if (e.Key == VirtualKey.Enter)
|
if (e.Key == VirtualKey.Enter) { return; }
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
base.OnKeyUp(e);
|
base.OnKeyUp(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue