Caps Lock ignored on Windows
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 818
- Forks
- 249
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 30
Description
Describe the bug
On my system, caps lock is ignored. Typing with caps lock on produces lower case. Holding shift with caps lock on produces upper case.
This seems to only affect Windows. I do not get the same behavior in WSL.
All within the same window, I can switch between various shells like cmd, pwsh, and nu - and nu is the only one to ignore caps lock.
How to reproduce
- Have Windows
- Unsure if it is specific to Windows 10 and/or the new console window
- Have Caps Lock enabled
- Type stuff
Expected behavior
I expected nu to respect my caps lock key state.
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.60.0 |
| build_os | windows-x86_64 |
| rust_version | rustc 1.59.0 (9d1b2106e 2022-02-23) |
| rust_channel | stable-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.59.0 (49d8809dc 2022-02-10) |
| pkg_version | 0.60.0 |
| build_time | 2022-03-22 22:19:26 -04:00 |
| build_rust_channel | release |
| features | dataframe, default, trash, which, zip |
| installed_plugins |
Additional context
OS Version: 10.0.19042 N/A Build 19042
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 behavior in reedline on Windows 10 using the reported 0.60.0 setup, comparing nu with cmd and pwsh in the same console window. Trace the Windows keyboard input path first; done means Caps Lock produces uppercase text and Shift with Caps Lock produces lowercase text as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- 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