[PR #5388] [MERGED] wpf: only dismiss selection for real chars, not modifiers #26295

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5388
Author: @DHowett-MSFT
Created: 4/17/2020
Status: Merged
Merged: 4/17/2020
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/wpf/holy_shift


📝 Commits (1)

  • 5e56134 wpf: only dismiss selection for real chars, not modifiers

📊 Changes

3 files changed (+36 additions, -8 deletions)

View changed files

📝 src/cascadia/PublicTerminalCore/HwndTerminal.cpp (+33 -7)
📝 src/cascadia/PublicTerminalCore/HwndTerminal.hpp (+3 -0)
📝 src/cascadia/WpfTerminalControl/TerminalContainer.cs (+0 -1)

📄 Description

Selection would act up when you were using shift to ignore VT mouse
mode: we would get hundreds of WM_KEYDOWN for VK_SHIFT and dismiss the
selection every time.

I took the opportunity to move the actual responsibility for key event
dispatch into HwndTerminal. In the future, I'd like to make more of the
TerminalXxx calls just call impl methods on HwndTerminal.

PR Checklist

  • Closes #xxx
  • CLA
  • Tests added/passed
  • Requires documentation to be updated
  • Core Contributor Discussion

Validation Steps Performed

Selection now works in VT mouse mode.


🔄 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/5388 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 4/17/2020 **Status:** ✅ Merged **Merged:** 4/17/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/wpf/holy_shift` --- ### 📝 Commits (1) - [`5e56134`](https://github.com/microsoft/terminal/commit/5e561344570290908ff49ea7b466573efe58c7c5) wpf: only dismiss selection for real chars, not modifiers ### 📊 Changes **3 files changed** (+36 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/PublicTerminalCore/HwndTerminal.cpp` (+33 -7) 📝 `src/cascadia/PublicTerminalCore/HwndTerminal.hpp` (+3 -0) 📝 `src/cascadia/WpfTerminalControl/TerminalContainer.cs` (+0 -1) </details> ### 📄 Description Selection would act up when you were using shift to ignore VT mouse mode: we would get hundreds of WM_KEYDOWN for VK_SHIFT and dismiss the selection every time. I took the opportunity to move the actual responsibility for key event dispatch into HwndTerminal. In the future, I'd like to make more of the TerminalXxx calls just call impl methods on HwndTerminal. ## PR Checklist * [ ] Closes #xxx * [x] CLA * [ ] Tests added/passed * [ ] Requires documentation to be updated * [x] Core Contributor Discussion ## Validation Steps Performed Selection now works in VT mouse mode. --- <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:15:11 +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#26295