Tab key triggers twice in shell #10579

Open
opened 2026-01-31 02:25:02 +00:00 by claunia · 0 comments
Owner

Originally created by @dgliwka on GitHub (Sep 10, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.508]

Windows Terminal version (if applicable): 1.3.2382.0

Steps to reproduce

  1. Start either cmd, PowerShell or wsl (Ubuntu 20.04) profile (with default settings.json).
  2. Hit Tab ↹ button.
  3. Tab ↹ action is executed by shell twice,

Expected behavior

Shell receives Tab key once, and therefore executes it's action once.

Actual behavior

Shell (bash on wsl, PowerShell or cmd) executes Tab key twice, resulting with two \t characters in vim, or advancing shell's directory autocompletion by two directories.

Notes:

  1. After mapping another key to Tab input code with:
    { "command": { "action": "sendInput", "input": "\u0009" }, "keys": "f2" }
    F2 key sends Tab's input code only once.
  2. It is not a problem with keyboard, as the problem appears only in Windows Terminal.
Originally created by @dgliwka on GitHub (Sep 10, 2020). # Environment ``` Windows build number: Microsoft Windows [Version 10.0.19041.508] Windows Terminal version (if applicable): 1.3.2382.0 ``` # Steps to reproduce 1. Start either cmd, PowerShell or wsl (Ubuntu 20.04) profile (with default settings.json). 2. Hit `Tab ↹` button. 3. `Tab ↹` action is executed by shell twice, # Expected behavior Shell receives Tab key once, and therefore executes it's action once. # Actual behavior Shell (bash on wsl, PowerShell or cmd) executes Tab key twice, resulting with two \t characters in vim, or advancing shell's directory autocompletion by two directories. # Notes: 1. After mapping another key to `Tab` input code with: `{ "command": { "action": "sendInput", "input": "\u0009" }, "keys": "f2" }` F2 key sends `Tab`'s input code only once. 2. It is not a problem with keyboard, as the problem appears only in Windows Terminal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10579