-
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
fix control-character parsing in windows #629
fix control-character parsing in windows #629
Conversation
But does this fully fix the issue, what it |
With the PR:
Since shift+G returns |
I'll try to find where to add this, but it may takes some time.
For this case, I've compared between this version and 0.22, and tried it on Unix, it seems that they all interpreted as |
crossterm 0.23 seems to have introduce a regression on windows for decoding keybindings with `ctrl` that uppercases the char. Tracking issue crossterm-rs/crossterm#636 Might be fixed by crossterm-rs/crossterm#629
crossterm 0.23 seems to have introduce a regression on windows for decoding keybindings with `ctrl` that uppercases the char. Tracking issue crossterm-rs/crossterm#636 Might be fixed by crossterm-rs/crossterm#629
crossterm 0.23 seems to have introduce a regression on windows for decoding keybindings with `ctrl` that uppercases the char. Tracking issue crossterm-rs/crossterm#636 Might be fixed by crossterm-rs/crossterm#629
Not sure what has desired behavior there. Seems like that if SHIFT is pressed with other control keys the character should be just capitalized right? |
On Linux Mint, I get:
Unfortunately, I don't get ctrl+shift+G, though something in the desktop environment might be catching it. However, alt+shift+g capitalizes the char code. However, the alt+shift+g case makes me exepct ctrl+shift+g should behave similarly. Is there a document or wikipage somewhere defining how crossterm's intent? |
Maybe it's just me, but I'd expect |
When pressing SHIFT an uppercase is printed in all applications, we decided in the past that crossterm should also do this. Similarly, with capslock. When capslock is enabled the user will receive SHIFT + capitalized char. However, I do get your point, more or less a preference thing. |
On ubuntu, it also don't get SHIFT + CONTROL keys. Tho Unix terminals are more limited in their event support. Windows has a easier API for reading input. |
Co-authored-by: Timon <[email protected]>
Thanks. |
Sorry for introducing a new bug in #619
The bug is: when user enters
ctrl-g
, the result will beG with modifier CONTROL
. And we need to convert from upper caseG
to lowercaseg
.This pr is trying to fix it.