Commit 15c177f
fix: skip non-Press key events to prevent double input on Windows
On Windows, crossterm fires both KeyEventKind::Press and KeyEventKind::Release
for each keypress, causing every character to be entered twice. Filter out
Release and Repeat events before dispatching to the input handler.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 23e24ae commit 15c177f
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
366 | 369 | | |
367 | 370 | | |
368 | 371 | | |
| |||
0 commit comments