-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combination of CONTROL + <Non-Alphanumeric> i.e. [ , ], \, / etc. gives, faulty readings or no readings at all. #536
Comments
Could be related to #504 |
Some Initial Findings After some in the underlying
So there might not be any way for crossterm to differentiate between the two. |
I'm having this issue on Linux. Also, |
Having a similar issue on Pop!_OS with the default terminal. |
Windows implementation was fixed by #651 |
Also closing in favor of #685 for the linux reported keys in this issue. |
Describe the bug
Combination of CONTROL + <Non-Alphanumeric> i.e. [ , ], , / etc. gives, faulty readings or no readings at all.
// OUTPUT
// Press Ctrl+[ : KeyEvent { code: Esc, modifiers: NONE }
// Press Ctrl+] : KeyEvent { code: Char('5'), modifiers: CONTROL }
// Press Ctrl+/ : KeyEvent { code: Char('7'), modifiers: SHIFT | CONTROL }
// Press Ctrl+\ : KeyEvent { code: Char('4'), modifiers: CONTROL }
Some events such as Ctrl+, and Ctrl+. are not read at all. Ctrl+[ is not read in cmd.
To Reproduce
Steps to reproduce the behavior:
Clone repo and cargo run.
Expected behavior
// Press Ctrl+[ : KeyEvent { code: Char('['), modifiers: CONTROL }
// Press Ctrl+] : KeyEvent { code: Char(']'), modifiers: CONTROL }
// Press Ctrl+{ : KeyEvent { code: Char('{'), modifiers: SHIFT | CONTROL }
// Press Ctrl+} : KeyEvent { code: Char('}'), modifiers: SHIFT | CONTROL }
// Press Ctrl+/ : KeyEvent { code: Char('/'), modifiers: CONTROL }
// Press Ctrl+\ : KeyEvent { code: Char(''), modifiers: CONTROL }
// Press Ctrl+, : KeyEvent { code: Char(','), modifiers: CONTROL }
// Press Ctrl+. : KeyEvent { code: Char('.'), modifiers: CONTROL }
OS
Terminal/Console
The text was updated successfully, but these errors were encountered: