-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Key presses happen twice on Windows #514
Comments
Interesting, thanks for the report! I wonder if there's something we can enable in If not, we could certainly implement some windows-specific logic to work around this in the console. But, it seems like there ought to be something in the terminal UI libraries for it... |
I'm also having this issue. |
For me, #515 fixes this problem. |
Ratatui doesn't have anything that handles the actual key events, the code for this is all in Crossterm. |
What crate(s) in this repo are involved in the problem?
tokio-console
What is the issue?
Whenever pressing a key in the tokio-console ui, it presses twice. Pressing j goes down two elements. Pressing space pauses then unpauses. Both keys press instantly. It doesn't matter when I release the key.
How can the bug be reproduced?
Run tokio-console on Windows 10 (or Windows 11, apparently) on Powershell or Git Bash. The bug happened on the Tabby terminal emulator and on the VSCode terminal emulator.
Logs, error output, etc
No response
Versions
console-subscriber v0.2.0
console-api v0.6.0
tokio-console 0.1.10
Possible solution
I remember seeing somewhere that Windows key events fire on both key pressed and key released, while Unix key events only fire on key pressed. It may be the other way around.
Additional context
No response
Would you like to work on fixing this bug?
maybe
The text was updated successfully, but these errors were encountered: