nushell / nushell/reedline

Caps Lock ignored on Windows

Open
#360 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Events bug P-high platform-dependent
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
  1. Have Windows
  2. Unsure if it is specific to Windows 10 and/or the new console window
  3. Have Caps Lock enabled
  4. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.