reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Caps Lock ignored on Windows

Open TyPR124 opened this issue 2 years ago • 2 comments

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

TyPR124 avatar Mar 23 '22 12:03 TyPR124

confirmed. the same thing happens to me on windows with windows terminal with caps lock on. this could be a reedline issue?

fdncred avatar Mar 23 '22 13:03 fdncred

I knew this one was going to bite us back. In reedline we decided to case ignore all inputs and change the case based on the modifier. It seems that caps dont send a modifier to the events.

elferherrera avatar Mar 25 '22 06:03 elferherrera