-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Duplicates all keys because key-down and key-up both trigger input #333
Comments
|
Alright. Gonna go test on my windows install to see if this is reproducible. |
Cool. Just tested that this happens with cmd.exe as well, so no need to install any terminals or shells. |
Looking into crossterm, there seems to be a resolved issue with the same problem. Although I didn't find it myself at, the fix is just matching only key down. |
If I was to make a branch with the fix, would you be willing to checkout said branch to see if it works properly? |
Sure, no problem, no rush. |
Alright. The fix will be done. |
Nevermind, reread. All are duplicates. |
A patch has been pushed to https://github.com/Xithrius/twitch-tui/tree/fix-duplicate-keys. |
Tested and it fixes this bug. Thanks! |
Very well. I'll merge this into main and make a quick release for it. |
Now available in https://github.com/Xithrius/twitch-tui/releases/tag/v2.2.0 |
Describe the bug:
All key-down AND key-up events trigger input, leading to duplicates.
To Reproduce:
Press i go to into text insert mode, and another "i" will appear immediately in the input text box. Press any other key, and the key will appear on key-down AND on key-up, meaning it appears twice. This includes Backspace, so it is impossible to enter a single character, even by correcting one character at a time.
Expected behavior:
Input only detected on key-down or repeats on longpress key-down.
Screenshots:
None.
System:
Additional context:
None.
The text was updated successfully, but these errors were encountered: