Browse Source

Merge pull request #11090 from Gillibald/fixes/buttonAccessKeyAltGr

Fix Button access key handling for AltGr
Max Katz 2 years ago
parent
commit
2452900976
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Base/Input/AccessKeyHandler.cs

+ 1 - 1
src/Avalonia.Base/Input/AccessKeyHandler.cs

@@ -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.