[PR #1436] [MERGED] Fixed #521 - AltGr combinations not working #24606

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1436
Author: @lhecker
Created: 6/22/2019
Status: ✅ Merged
Merged: 6/28/2019
Merged by: @DHowett-MSFT

Base: master ← Head: fix-altgr-handling


📝 Commits (1)

📊 Changes

7 files changed (+66 additions, -42 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+32 -18)
📝 src/cascadia/TerminalControl/TermControl.h (+1 -1)
📝 src/cascadia/TerminalCore/ITerminalInput.hpp (+1 -1)
📝 src/cascadia/TerminalCore/Terminal.cpp (+21 -13)
📝 src/cascadia/TerminalCore/Terminal.hpp (+1 -4)
📝 src/cascadia/UnitTests_TerminalCore/InputTest.cpp (+3 -3)
📝 src/terminal/adapter/ut_adapter/inputTest.cpp (+7 -2)

📄 Description

Summary of the Pull Request

Let's start fixing #521 and the currently broken state of AltGr combinations, as it heavily affects many non-US users of this project.

PR Checklist

  • Closes iTerm color schemes once more are failing to parse colors (#521)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be 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: #521

Detailed Description of the Pull Request / Additional comments

I'm about 100% sure that this PR is not going to fix #521 by itself, but it's a start. 🙂
If others wan't to contribute to this PR, please feel free to do so. I'll gladly grant push permissions to my fork.

If you want to view the diff here on GitHub I recommend enabling "Hide whitespace changes" in the diff viewer.

Validation Steps Performed

This PR fixes all immediate/obvious issues in regards to AltGr for me in all types of shells I know.
I think it's fairly easy to see why it works, since I simply delegate the handling to WM_CHAR instead.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/1436 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 6/22/2019 **Status:** ✅ Merged **Merged:** 6/28/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `fix-altgr-handling` --- ### 📝 Commits (1) - [`0ad7f92`](https://github.com/microsoft/terminal/commit/0ad7f921670ffbedc75d5ac5e4e878b2a20efa90) Fixed #521 - AltGr combinations not working ### 📊 Changes **7 files changed** (+66 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+32 -18) 📝 `src/cascadia/TerminalControl/TermControl.h` (+1 -1) 📝 `src/cascadia/TerminalCore/ITerminalInput.hpp` (+1 -1) 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+21 -13) 📝 `src/cascadia/TerminalCore/Terminal.hpp` (+1 -4) 📝 `src/cascadia/UnitTests_TerminalCore/InputTest.cpp` (+3 -3) 📝 `src/terminal/adapter/ut_adapter/inputTest.cpp` (+7 -2) </details> ### 📄 Description ## Summary of the Pull Request Let's start fixing #521 and the currently broken state of AltGr combinations, as it heavily affects many non-US users of this project. ## PR Checklist * [ ] Closes #521 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [ ] Requires documentation to be 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: #521 ## Detailed Description of the Pull Request / Additional comments I'm about 100% sure that this PR is not going to fix #521 by itself, but it's a start. 🙂 If others wan't to contribute to this PR, please feel free to do so. I'll gladly grant push permissions to my fork. If you want to view the diff here on GitHub I recommend enabling "Hide whitespace changes" in the diff viewer. ## Validation Steps Performed This PR fixes all immediate/obvious issues in regards to AltGr for me in all types of shells I know. I think it's fairly easy to see why it works, since I simply delegate the handling to `WM_CHAR` instead. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:04:19 +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#24606