microsoft / microsoft/terminal

Issues with Keyboard Input after Update

Open
#18,558 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Needs-Attention Needs-Triage
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.22.10352.0

### Windows build number

10.0.19045.5371

### Other Software

git version 2.47.1.windows.2

### Steps to reproduce

Use the most recent version of Git Bash (2.47.1.windows.2) inside the most recent version of Windows Terminal (1.22.10352.0).

- Try to paste the `~` character to the prompt using either `Ctrl`+`v` or `Ctrl`+`Shift`+`v`.

- On German Keyboard Layout, try to type `ö`, `ä`, `ü` or `ß` in the prompt.

### Expected Behavior

- Pasting via `Ctrl`+`v` should work as expected, i.e. it should paste the correct text that is the clipboard.
- German Keyboard input should work as expected, i.e. keys should insert their corresponding characters.

### Actual Behavior

After updating to Windows Terminal version 1.22.10352.0, there are several issues with keyboard input when using Git Bash inside Windows Terminal.

1. Trying to paste any occurrences of the character `~` in the prompt using `Ctrl`+`v` or `Ctrl`+`Shift`+`v` instead pastes `^^`. This happens both on German and on US Keyboard layouts. It works fine only when pasting using `Shift`+`Insert`, right mouse click, or `Windows`+`v`.

2. For German Keyboard Layout, the characters `ö`, `ä`, `ü`, `ß` can't be written in the prompt and the corresponding keys instead seem to execute some commands.

None of these issues occur when using CMD in Windows Terminal and neither when using the Git Bash stand-alone terminal. The issues only occur when using Git Bash inside Windows Terminal.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by running Git Bash inside Windows Terminal 1.22.10352.0, testing tilde pasting and German keyboard characters, then compare CMD and the standalone Git Bash terminal. Trace the Windows Terminal input path and verify that Ctrl+V, Ctrl+Shift+V, and German keyboard input produce the expected characters without affecting other terminals.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.