[PR #1259] [MERGED] Don't always send an uppercase letter for Alt+key #24547

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1259
Author: @zadjii-msft
Created: 6/14/2019
Status: Merged
Merged: 6/14/2019
Merged by: @adiviness

Base: masterHead: dev/migrie/b/637-alt-letter


📝 Commits (3)

  • b7ecd30 Don't always send an uppercase letter for Alt+key
  • 6295abc runformat
  • 1dd3568 Use towlower instead of just subtracting 32.

📊 Changes

3 files changed (+80 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalCore/Terminal.cpp (+12 -1)
src/cascadia/UnitTests_TerminalCore/InputTest.cpp (+66 -0)
📝 src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj (+2 -1)

📄 Description

Summary of the Pull Request

MapVirtualKey will give us the capitalized version of the char.
However, if shift isn't pressed, we want to send the lowercase version.

PR Checklist

  • Closes A suspected bug of CreateThread API usage (#637)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • 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

I added a test for this case.


🔄 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/1259 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 6/14/2019 **Status:** ✅ Merged **Merged:** 6/14/2019 **Merged by:** [@adiviness](https://github.com/adiviness) **Base:** `master` ← **Head:** `dev/migrie/b/637-alt-letter` --- ### 📝 Commits (3) - [`b7ecd30`](https://github.com/microsoft/terminal/commit/b7ecd301d3248784687c9d9e6956393e4ffec2b1) Don't always send an uppercase letter for Alt+key - [`6295abc`](https://github.com/microsoft/terminal/commit/6295abcc6509abe3f39fbe2fdaed834a98f06f9e) runformat - [`1dd3568`](https://github.com/microsoft/terminal/commit/1dd356829bb51375bb9945fb3225a856a015f711) Use `towlower` instead of just subtracting 32. ### 📊 Changes **3 files changed** (+80 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+12 -1) ➕ `src/cascadia/UnitTests_TerminalCore/InputTest.cpp` (+66 -0) 📝 `src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj` (+2 -1) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request MapVirtualKey will give us the capitalized version of the char. However, if shift isn't pressed, we want to send the lowercase version. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #637 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [x] 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 <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed I added a test for this case. --- <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:03:56 +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#24547