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

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

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

State: closed
Merged: Yes


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)

**Original Pull Request:** https://github.com/microsoft/terminal/pull/11814 **State:** closed **Merged:** Yes --- 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)
claunia added the pull-request label 2026-01-31 09:30:31 +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#28753