-
Notifications
You must be signed in to change notification settings - Fork 278
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
Double key input on Windows #772
Comments
Its like key press/release |
Ok.. but why it doesn't occur on every terminal but only on Window's one? |
good question, and actually, I think this needs to be reverted. On UNIX systems its supported under the kitty protocol. But as its not supported all over it should likely be disabled by default and enabled behind feature flag |
ok, waiting to be fixed so... But it would be a big change no? |
not really. In the meantime just match on the https://docs.rs/crossterm/latest/crossterm/event/struct.KeyEvent.html |
I was just trying out However I noticed that on WSL, there aren't any release events on either terminal. Am I not understanding something here? Edit: Also what is even causing the difference in wezterm and windows terminal? Disabling kitty didn't change this, disabling win32 made it even worse than windows terminal where even arrow keys don't work properly. |
Hey I spend some time figuring this out and I explained it in my PR. But to sum it up: cmd on conhost works as intended, then any other combination of cmd, powershell, conhost and wezterm (maybe others) works but you get the unintended "release" event at the start. The only one which doesn't work well is windows terminal regardless of shell which means you can't use it for detecting held keys if they produce a letter. They might get it fixed eventually as well, it's being tracked here #775 (comment). But it still works fine as long as you check for either press or release. |
@TimonPost this one is already open for the same issue #752 |
Closing as duplicate then |
Describe the bug
When I use the event::read function I have double input, and it does like I have clicked a key two times. When I tried it on my WSL it worked..
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Fix this
OS
Terminal/Console
The text was updated successfully, but these errors were encountered: