Skip to content
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

Windows Double KeyPress Issue #39

Closed
0Ky opened this issue Oct 21, 2023 · 1 comment
Closed

Windows Double KeyPress Issue #39

0Ky opened this issue Oct 21, 2023 · 1 comment

Comments

@0Ky
Copy link
Contributor

0Ky commented Oct 21, 2023

On Windows, a single keypress is mistakenly detected twice: once on KeyDown and again on KeyUp.
This issue stems from crossterm, you will need to check the KeyEventKind:

if let Event::Key(key) = event {
    if key.kind == KeyEventKind::Press {
        ...
    }
}
@radlinskii
Copy link
Owner

Let's keep this as separate issue, but also added it as part of #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants