|
|
@@ -176,7 +176,7 @@ namespace Avalonia.Input
|
|
|
{
|
|
|
bool menuIsOpen = MainMenu?.IsOpen == true;
|
|
|
|
|
|
- if (e.KeyModifiers.HasAllFlags(KeyModifiers.Alt) || menuIsOpen)
|
|
|
+ if (e.KeyModifiers.HasAllFlags(KeyModifiers.Alt) && !e.KeyModifiers.HasAllFlags(KeyModifiers.Control) || menuIsOpen)
|
|
|
{
|
|
|
// If any other key is pressed with the Alt key held down, or the main menu is open,
|
|
|
// find all controls who have registered that access key.
|