[PR #10945] [MERGED] Make ActionMap compatible with ScanCode-only KeyChords #28318

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10945
Author: @lhecker
Created: 8/13/2021
Status: Merged
Merged: 8/20/2021
Merged by: @undefined

Base: mainHead: dev/lhecker/10875-action-map-layering-fixup


📝 Commits (2)

  • 3c240c2 Make ActionMap compatible with ScanCode-only KeyChords
  • e78cfe3 Address reviewer comments

📊 Changes

7 files changed (+117 additions, -103 deletions)

View changed files

📝 src/cascadia/LocalTests_SettingsModel/KeyBindingsTests.cpp (+12 -0)
📝 src/cascadia/TerminalControl/KeyChord.cpp (+52 -4)
📝 src/cascadia/TerminalControl/KeyChord.h (+7 -4)
📝 src/cascadia/TerminalControl/KeyChord.idl (+3 -0)
📝 src/cascadia/TerminalSettingsModel/ActionMap.cpp (+28 -28)
📝 src/cascadia/TerminalSettingsModel/ActionMap.h (+8 -61)
📝 src/cascadia/ut_app/JsonTests.cpp (+7 -6)

📄 Description

This commit partially reverts d465a47 and introduces an alternative approach by adding Hash and Equals methods to the KeyChords class. Those methods will now favor any existing Vkeys over ScanCodes.

PR Checklist

Validation Steps Performed

  • Added a new test, which is ✔️
  • Various standard commands still work ✔️
  • Hash() returns the same value for all KeyChords that are Equals() ✔️

🔄 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/10945 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 8/13/2021 **Status:** ✅ Merged **Merged:** 8/20/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/10875-action-map-layering-fixup` --- ### 📝 Commits (2) - [`3c240c2`](https://github.com/microsoft/terminal/commit/3c240c2234ddca704401250cbe870627b4f3fff4) Make ActionMap compatible with ScanCode-only KeyChords - [`e78cfe3`](https://github.com/microsoft/terminal/commit/e78cfe3ecc42f9e0a8e2e70a8c1c4788ccbebabd) Address reviewer comments ### 📊 Changes **7 files changed** (+117 additions, -103 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/KeyBindingsTests.cpp` (+12 -0) 📝 `src/cascadia/TerminalControl/KeyChord.cpp` (+52 -4) 📝 `src/cascadia/TerminalControl/KeyChord.h` (+7 -4) 📝 `src/cascadia/TerminalControl/KeyChord.idl` (+3 -0) 📝 `src/cascadia/TerminalSettingsModel/ActionMap.cpp` (+28 -28) 📝 `src/cascadia/TerminalSettingsModel/ActionMap.h` (+8 -61) 📝 `src/cascadia/ut_app/JsonTests.cpp` (+7 -6) </details> ### 📄 Description This commit partially reverts d465a47 and introduces an alternative approach by adding Hash and Equals methods to the KeyChords class. Those methods will now favor any existing Vkeys over ScanCodes. ## PR Checklist * [x] Closes #10933 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Added a new test, which is ✔️ * Various standard commands still work ✔️ * Hash() returns the same value for all KeyChords that are Equals() ✔️ --- <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:27:45 +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#28318