crossterm-rs / crossterm

Cross platform terminal library rust
MIT License
3.28k stars 281 forks source link

Modifiers keys are not detected for KeyCode::Enter #773

Closed aaron404 closed 1 year ago

aaron404 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Poll for events
  2. Press a letter key (such as A, B, etc) while holding shift or control, these modifiers will be reported correctly
  3. Repeat the test but by pressing Enter while holding shift or control. No modifier will be reported.

Expected behavior Modifiers (ctrl, shift, alt, etc) should be reported when Enter is pressed

OS Ubuntu via Windows WSL

Terminal/Console Windows terminal

dob9601 commented 1 year ago

Can confirm that this affects me too

OS Manjaro Linux

Terminal/Console Both Kitty and Konsole exhibit the behaviour. Haven't tested more.

TimonPost commented 1 year ago

Please post your issue here: https://github.com/crossterm-rs/crossterm/issues/685. It also seems like the modifiers + ENTER combo was already reported, additional information would be the systems that those are not supported on. Thanks.