[PR #11814] [MERGED] Fix AltGr not working in the settings UI (#11808) #28748

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11814
Author: @lhecker
Created: 11/23/2021
Status: Merged
Merged: 12/1/2021
Merged by: @zadjii-msft

Base: release-1.12Head: dev/lhecker/issue-11788-altgr-broken-backport


📝 Commits (1)

📊 Changes

4 files changed (+162 additions, -26 deletions)

View changed files

📝 src/cascadia/TerminalApp/TerminalPage.cpp (+139 -13)
📝 src/cascadia/TerminalApp/TerminalPage.h (+9 -2)
📝 src/cascadia/TerminalControl/TermControl.cpp (+12 -9)
📝 src/cascadia/TerminalControl/TermControl.h (+2 -2)

📄 Description

Since the settings UI's input fields behave similarly to the terminal's input,
TerminalPage::_KeyDownHandler also needs to behave similarly to
TermControl::_KeyHandler. This commit copies all relevant code
over from the latter into the former, including the suppression
of AltGr keys for keychord/action handling.

PR Checklist

Validation Steps Performed

  • Use a German keyboard layout
  • Open 2 regular tabs and 1 settings tab and focus an input field
  • AltGr+2 produces the character ² ✔️
  • Ctrl+Alt+2 opens the second tab ✔️

(cherry picked from commit 80f8383860)


🔄 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/11814 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 11/23/2021 **Status:** ✅ Merged **Merged:** 12/1/2021 **Merged by:** [@zadjii-msft](https://github.com/zadjii-msft) **Base:** `release-1.12` ← **Head:** `dev/lhecker/issue-11788-altgr-broken-backport` --- ### 📝 Commits (1) - [`0bde7f4`](https://github.com/microsoft/terminal/commit/0bde7f4fd3252413cf703de66012738cf48ff196) Fix AltGr not working in the settings UI (#11808) ### 📊 Changes **4 files changed** (+162 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+139 -13) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+9 -2) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+12 -9) 📝 `src/cascadia/TerminalControl/TermControl.h` (+2 -2) </details> ### 📄 Description Since the settings UI's input fields behave similarly to the terminal's input, `TerminalPage::_KeyDownHandler` also needs to behave similarly to `TermControl::_KeyHandler`. This commit copies all relevant code over from the latter into the former, including the suppression of AltGr keys for keychord/action handling. ## PR Checklist * [x] Closes #11788 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Use a German keyboard layout * Open 2 regular tabs and 1 settings tab and focus an input field * AltGr+2 produces the character ² ✔️ * Ctrl+Alt+2 opens the second tab ✔️ (cherry picked from commit 80f838386075068d571099ad2888c6afc2f911a0) --- <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:30:30 +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#28748