[PR #7400] Fixed #7372: Setting "altGrAliasing" to "false" disables AltGr #26920

Open
opened 2026-01-31 09:18:54 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/7400

State: closed
Merged: Yes


Summary of the Pull Request

Previously, if altGrAliasing was disabled, all Ctrl+Alt combinations were considered to be aliases of AltGr including AltGr itself and thus considered as key and not character events. But AltGr should not be treated as an alias of itself of course, as that prevents one from entering AltGr combinations entirely.

PR Checklist

  • Closes Terminal Crashes on opening (#7372)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Validation Steps Performed

  • Activate a German keyboard layout
  • Run showkey -a in WSL
  • Ensure that AltGr+Q produces @
  • Ensure that Ctrl+Alt+Q produces @
  • Disable altGrAliasing
  • Ensure that AltGr+Q produces @
  • Ensure that Ctrl+Alt+Q produces ^[^Q
**Original Pull Request:** https://github.com/microsoft/terminal/pull/7400 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Previously, if `altGrAliasing` was disabled, all `Ctrl+Alt` combinations were considered to be aliases of `AltGr` including `AltGr` itself and thus considered as key and not character events. But `AltGr` should not be treated as an alias of itself of course, as that prevents one from entering `AltGr` combinations entirely. ## PR Checklist * [x] Closes #7372 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Validation Steps Performed * Activate a German keyboard layout * Run `showkey -a` in WSL * **Ensure** that `AltGr+Q` produces `@` * **Ensure** that `Ctrl+Alt+Q` produces `@` * Disable `altGrAliasing` * **Ensure** that `AltGr+Q` produces `@` * **Ensure** that `Ctrl+Alt+Q` produces `^[^Q`
claunia added the pull-request label 2026-01-31 09:18:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26920