[PR #9106] [MERGED] Move CharToKeyEvents (and friends) into InteractivityBase #27424

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9106
Author: @DHowett
Created: 2/10/2021
Status: Merged
Merged: 2/11/2021
Merged by: @DHowett

Base: mainHead: dev/duhowett/move_vtredir_up


📝 Commits (1)

  • efd8ccf Move CharToKeyEvents (and friends) into InteractivityBase

📊 Changes

11 files changed (+259 additions, -219 deletions)

View changed files

src/interactivity/base/EventSynthesis.cpp (+210 -0)
📝 src/interactivity/base/lib/InteractivityBase.vcxproj (+2 -0)
📝 src/interactivity/base/lib/InteractivityBase.vcxproj.filters (+7 -1)
📝 src/interactivity/base/sources.inc (+2 -1)
src/interactivity/inc/EventSynthesis.hpp (+29 -0)
📝 src/interactivity/win32/Clipboard.cpp (+1 -0)
📝 src/terminal/adapter/InteractDispatch.cpp (+2 -2)
📝 src/terminal/parser/ut_parser/InputEngineTest.cpp (+2 -2)
📝 src/terminal/parser/ut_parser/Parser.UnitTests.vcxproj (+4 -1)
📝 src/types/convert.cpp (+0 -202)
📝 src/types/inc/convert.hpp (+0 -10)

📄 Description

These functions have a dependency on the "VT Redirected" versions of
VkKeyScanW, MapVirtualKeyW and GetKeyState. Those implementations depend
on the service locator and therefore the entire interactivity stack.

This meant that anybody depending on just Types had to pull in the
entire host
worth of dependencies (!).

Since these functions are only used in places where we have or are
testing interactivity, it makes sense to consolidate them here.

Closes #9105.


🔄 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/9106 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 2/10/2021 **Status:** ✅ Merged **Merged:** 2/11/2021 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/duhowett/move_vtredir_up` --- ### 📝 Commits (1) - [`efd8ccf`](https://github.com/microsoft/terminal/commit/efd8ccf0d947198dcee6e06590640026754b1aac) Move CharToKeyEvents (and friends) into InteractivityBase ### 📊 Changes **11 files changed** (+259 additions, -219 deletions) <details> <summary>View changed files</summary> ➕ `src/interactivity/base/EventSynthesis.cpp` (+210 -0) 📝 `src/interactivity/base/lib/InteractivityBase.vcxproj` (+2 -0) 📝 `src/interactivity/base/lib/InteractivityBase.vcxproj.filters` (+7 -1) 📝 `src/interactivity/base/sources.inc` (+2 -1) ➕ `src/interactivity/inc/EventSynthesis.hpp` (+29 -0) 📝 `src/interactivity/win32/Clipboard.cpp` (+1 -0) 📝 `src/terminal/adapter/InteractDispatch.cpp` (+2 -2) 📝 `src/terminal/parser/ut_parser/InputEngineTest.cpp` (+2 -2) 📝 `src/terminal/parser/ut_parser/Parser.UnitTests.vcxproj` (+4 -1) 📝 `src/types/convert.cpp` (+0 -202) 📝 `src/types/inc/convert.hpp` (+0 -10) </details> ### 📄 Description These functions have a dependency on the "VT Redirected" versions of VkKeyScanW, MapVirtualKeyW and GetKeyState. Those implementations depend on the service locator and therefore the entire interactivity stack. This meant that anybody depending on just Types had to pull in **the entire host** worth of dependencies (!). Since these functions are only used in places where we have or are testing interactivity, it makes sense to consolidate them here. Closes #9105. --- <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:21:54 +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#27424