ratatui / templates

Templates for bootstrapping a Rust TUI application with Ratatui
https://ratatui.rs/templates
MIT License
255 stars 36 forks source link

fix: check key event kind for the simple template #55

Closed vm910 closed 7 months ago

vm910 commented 7 months ago

Hello!

I stumbled onto this crate by accident and wanted to make a toy in it. After making it, I tested it on Linux and Windows and noticed that it produces double inputs on Windows after every key stroke. I saw in the FAQ what the problem was and thought it'd be best to patch this here. The simple-async template seems to already have this check there, so there's no need to touch that I think.

This is my first ever PR so I apologize in advance if I made any mistakes.