Right shift key not detected by wslg
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.9k
- Forks
- 429
- PR merge metrics
- No merged PRs in 30d
Description
Windows build number:
Windows 10.0.19045.2364
Your Distribution version:
20.04
Your WSL versions:
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2364
Steps to reproduce:
- Open gedit/emacs with windows terminal
- Type while holding the right shift key
Expected behavior:
Letters should be capitalized when right shift key is pressed.
Actual behavior:
Letters are not capitalized when right shift key is pressed. Other keys behave properly. Left shift key and caps lock properly capitalize letters. Left shift key properly produced lower case letters when pressed while caps lock is on, but right shift key has no effect when caps lock is on.
Right shift key behaves properly outside WSLg, such as while in the wsl terminal.
Everything works fine if I use VcXsrv instead of WSLg

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in gedit or emacs launched with Windows Terminal, then compare WSLg with VcXsrv and the WSL terminal, as described in the report. Investigate the keyboard-input path responsible for right Shift and verify that capitalization and Caps Lock interactions match the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100