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

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

Original Pull Request: https://github.com/microsoft/terminal/pull/5388

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/5388 **State:** closed **Merged:** Yes --- 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.
claunia added the pull-request label 2026-01-31 09:15:12 +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#26299