Skip to content

Fix duplicate key events on Windows#1

Open
chixi4 wants to merge 1 commit intowooyukit:mainfrom
chixi4:fix-windows-double-input
Open

Fix duplicate key events on Windows#1
chixi4 wants to merge 1 commit intowooyukit:mainfrom
chixi4:fix-windows-double-input

Conversation

@chixi4
Copy link

@chixi4 chixi4 commented Feb 1, 2026

Summary

Test plan

  • Tested on Windows 11 with PowerShell / Windows Terminal
  • Verify no regression on macOS / Linux (should be a no-op since only Press events are generated on those platforms)

On Windows, crossterm reports both KeyPress and KeyRelease events,
causing each keystroke to be registered twice. Filter events to only
handle KeyEventKind::Press to fix this issue.

See: crossterm-rs/crossterm#797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant