-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard layout fails to switch second time in fresh WSL2 console #12650
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging |
Diagnostic information
|
Ops, I see custom Kernel. Just rolled back to stock 5.15.167.4-microsoft-standard-WSL2 - exactly same behavior in WSL2 console. |
Thank you for reporting this @BarsMonster. WSL doesn't process keyboard layouts, this is all handled by Windows. Do you see the same behavior with let's say a powershell prompt instead of WSL ? |
No, it works perfectly in powershell. |
To be more precise, I see the issue when opening WSL console via "C:\Windows\System32\wsl.exe ~" |
Hi @BarsMonster, this is unlikely to be a WSL issue and is more likely a Windows or Terminal issue. WSL doesn't do anything specific with keyboard layouts in WSL. |
WslLogs-2025-03-02_03-47-33.zip
Windows Version
Microsoft Windows [Version 10.0.22631.4751]
WSL Version
WSL version: 2.4.11.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.1.21.2
Distro Version
22.04
Other Software
No response
Repro Steps
Expected Behavior
Actual Behavior
When you write few text characters - you can see that second keyboard layout switch did not worked.
You can see that all further Win+Space key-presses are ignored. But after you switch window focus at least once - it fixes itself, and all future Win+Space presses work correctly.
This behavior was quite unexpected, so I reproduced it on 2 different computers with WSL2. But floating language bar must be hidden. If language bar is hidden, and you HOLD Win+Space - language bar will open anyways in 1-2 seconds, and this also fixes language switching in WSL2 console.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: