-
Notifications
You must be signed in to change notification settings - Fork 284
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
Wrong KeyEvent reported to yazi #917
Comments
See #685 |
I'm going to reopen this one after doing a bit more reading as it's a little more complex than just a missing key. On a German keyboard layout (I'm probably assuming / generalizing here), there is a third layer of keys on the standard keyboard which are accessed via either the AltGr key (which is often the right Alt button), or the Ctrl+Alt key combination on keyboards that don't do automatic AltGr translation. On the layout, the This likely is something that would only be fixed by implementing a fairly deep fundamental change to interacting with the console in crossterm using virtual terminal methods instead of the more legacy low level methods. I'm not sure this would be reasonable to implement as a change in crossterm, but it's worth discussing. The main problem would be that the new methods don't continue to return the window size events etc, but they would handle stripping AltGr / Alt+Ctrl automatically. |
How feasible is it to just throw away
|
Not feasible at all. Running the event-read example:
|
Yes. There are many keys without a third layer. (I don't really want to argue about details. Whatever works is fine. You can ignore this: |
Describe the bug
See sxyazi/yazi#1534.
It seems that crossterm reports
ctrl+alt+\
instead of just\
when pressingctrl+alt+ß
on a german keyboard. This creates an issue because yazi destincts between\
andctrl+alt+\
.To Reproduce
See sxyazi/yazi#1534.
Let me know if there is a way to check that indeed this dependency is at fault. The reported steps from the link use yazi.
Expected behavior
The keybinding
ctrl+alt+ß
is translated to the key event withKeyCode::Char('\\')
without modifiers.OS
Windows
Terminal/Console
Powershell
The text was updated successfully, but these errors were encountered: