-
Notifications
You must be signed in to change notification settings - Fork 463
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: inconsistent Shift
key behavior on Unix and Windows
#174
Conversation
What is your autoformat setting, I use the default one which comes with rust-analyzer, seems like it is different from yours. |
uh, I use rustfmt nightly and https://github.com/sxyazi/yazi/blob/main/rustfmt.toml as its config |
I tested it and it recognized
When I press |
In my opinion, a keymap |
I think not supporting |
I've flashed a mini Linux on my USB to quickly check. There is inconsistency between Linux and Windows key event:
Then I found this issue: crossterm-rs/crossterm#421 Looks like in the past they fix the inconsistency for alphabetic characters, but not for other shifted characters. I'll report this issue to crossterm and see if they can fix it from upstream. If they cannot, we have to adapt with the different behavior between OS. |
This reverts commit d5347fc.
…into shift_char_keymap
Can you help me check again? I decided to work around the inconsistency for now because it kinda breaks the app on Windows. I'll come back to this issue later if the crossterm team decides to address it. |
It worked on my side, I'll merge it, thanks @ndtoan96 |
Shift
key behavior on Unix and Windows
Fix #166