[PR #3316] [MERGED] prevent double handling of tab in wpf control #25320

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3316
Author: @ghost
Created: 10/24/2019
Status: Merged
Merged: 10/24/2019
Merged by: @miniksa

Base: masterHead: dev/zorio/wpf-control-double-tab


📝 Commits (1)

  • 21761de prevent double handling of tab in wpf control

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 src/cascadia/PublicTerminalCore/HwndTerminal.cpp (+5 -0)

📄 Description

Summary of the Pull Request

The WPF control was sending the tab character to the pty twice because in Win32-land tab comes in as both a WM_CHAR and WM_KEYDOWN event. This is contrary to UWP which only gets a key event for tab.

Validation Steps Performed

VS terminal was patched to verify that the terminal no longer double tabs.


🔄 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/3316 **Author:** [@ghost](https://github.com/ghost) **Created:** 10/24/2019 **Status:** ✅ Merged **Merged:** 10/24/2019 **Merged by:** [@miniksa](https://github.com/miniksa) **Base:** `master` ← **Head:** `dev/zorio/wpf-control-double-tab` --- ### 📝 Commits (1) - [`21761de`](https://github.com/microsoft/terminal/commit/21761de989e7fecd93d931625534442b87cad915) prevent double handling of tab in wpf control ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/PublicTerminalCore/HwndTerminal.cpp` (+5 -0) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request The WPF control was sending the tab character to the pty twice because in Win32-land tab comes in as both a WM_CHAR and WM_KEYDOWN event. This is contrary to UWP which only gets a key event for tab. ## Validation Steps Performed VS terminal was patched to verify that the terminal no longer double tabs. --- <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:08:43 +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#25320