Skip to content

Commit

Permalink
Fix AltGr+Space not working (#11832)
Browse files Browse the repository at this point in the history
This fixes a regression introduced in #10988 for the 1.11 release branch.
For later branches this issue was fixed in #11086.

## PR Checklist
* [x] Closes #11649
* [x] I work here
* [x] Tests added/passed

## Validation Steps Performed
* AltGr+Space produces "_" with the bépo keyboard layout
  • Loading branch information
lhecker authored Dec 1, 2021
1 parent 7b77568 commit 2bd3768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalControl/TermControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
return;
}

if (vkey == VK_SPACE && modifiers.IsAltPressed())
if (vkey == VK_SPACE && modifiers.IsAltPressed() && !modifiers.IsAltGrPressed())
{
if (const auto bindings = _settings.KeyBindings())
{
Expand Down

0 comments on commit 2bd3768

Please sign in to comment.