microsoft / microsoft/terminal
GetKeyboardLayout is not updated during a console session
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
From @matial on August 13, 2017 21:0
-
Your Windows build number: version 10.0.14393
-
Calling GetKeyboardLayout(0) periodically within a console application returns the handle of the keyboard layout active when starting the console. If the keyboard layout is changed while the console app is running, subsequent calls to GetKeyboardLayout do not reflect the new active layout.
-
What's wrong / what should be happening instead: GetKeyboardLayout should return the handle of the last activated keyboard layout.
Copied from original issue: Microsoft/WSL#2418
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
Start by reproducing the issue in a Windows console application that calls GetKeyboardLayout(0) periodically, changing the keyboard layout while the process runs. Trace the console and keyboard-layout handling connected to that API and compare the returned handle before and after the change. Done means subsequent calls return the last activated keyboard layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- 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