[PR #14747] [MERGED] Make KeyEvent char data a little less confusing #30244

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14747
Author: @lhecker
Created: 1/27/2023
Status: Merged
Merged: 2/2/2023
Merged by: @carlos-zamora

Base: mainHead: dev/lhecker/8000-KeyEvent-CharData


📝 Commits (2)

  • 6f2fbe0 Make KeyEvent char data a little less confusing
  • 5d32db5 Fix build

📊 Changes

4 files changed (+12 additions, -3 deletions)

View changed files

📝 src/host/dbcs.cpp (+1 -1)
📝 src/interactivity/win32/windowio.cpp (+2 -2)
📝 src/types/KeyEvent.cpp (+8 -0)
📝 src/types/inc/IInputEvent.hpp (+1 -0)

📄 Description

When working on #14745 I found KeyEvents a little hard to read in the
debugger. I noticed that this is because of sign extension when converting
chars to wchar_ts in KeyEvent::SetCharData.


🔄 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/14747 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 1/27/2023 **Status:** ✅ Merged **Merged:** 2/2/2023 **Merged by:** [@carlos-zamora](https://github.com/carlos-zamora) **Base:** `main` ← **Head:** `dev/lhecker/8000-KeyEvent-CharData` --- ### 📝 Commits (2) - [`6f2fbe0`](https://github.com/microsoft/terminal/commit/6f2fbe0dd437f87fc5ad880d52df84ca924fc303) Make KeyEvent char data a little less confusing - [`5d32db5`](https://github.com/microsoft/terminal/commit/5d32db5dc07ddd6c4b8059d9172ec41799858b49) Fix build ### 📊 Changes **4 files changed** (+12 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/host/dbcs.cpp` (+1 -1) 📝 `src/interactivity/win32/windowio.cpp` (+2 -2) 📝 `src/types/KeyEvent.cpp` (+8 -0) 📝 `src/types/inc/IInputEvent.hpp` (+1 -0) </details> ### 📄 Description When working on #14745 I found `KeyEvent`s a little hard to read in the debugger. I noticed that this is because of sign extension when converting `char`s to `wchar_t`s in `KeyEvent::SetCharData`. --- <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:39:33 +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#30244