Browse Source

Whitespace changes.

pull/765/head
Dan Walmsley 10 years ago
parent
commit
980a04b38f
  1. 6
      src/Avalonia.Input/AccessKeyHandler.cs

6
src/Avalonia.Input/AccessKeyHandler.cs

@ -129,14 +129,14 @@ namespace Avalonia.Input
// When Alt is pressed without a main menu, or with a closed main menu, show // When Alt is pressed without a main menu, or with a closed main menu, show
// access key markers in the window (i.e. "_File"). // access key markers in the window (i.e. "_File").
_owner.ShowAccessKeys = _showingAccessKeys = true; _owner.ShowAccessKeys = _showingAccessKeys = true;
} }
else else
{ {
// If the Alt key is pressed and the main menu is open, close the main menu. // If the Alt key is pressed and the main menu is open, close the main menu.
CloseMenu(); CloseMenu();
_ignoreAltUp = true; _ignoreAltUp = true;
_restoreFocusElement?.Focus(); _restoreFocusElement?.Focus();
_restoreFocusElement = null; _restoreFocusElement = null;
} }
@ -144,7 +144,7 @@ namespace Avalonia.Input
// We always handle the Alt key. // We always handle the Alt key.
e.Handled = true; e.Handled = true;
} }
else if(_altIsDown) else if (_altIsDown)
{ {
_ignoreAltUp = true; _ignoreAltUp = true;
} }

Loading…
Cancel
Save