Skip to content

Commit 555f6a6

Browse files
Master-Hashaltsem
authored andcommitted
fix: Keys double press on Windows (#385) (again)
Tested on Windows and Linux.
1 parent 6302e23 commit 555f6a6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/app.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ impl App {
252252
}
253253

254254
fn handle_key_input(&mut self, term: &mut Term, key: event::KeyEvent) -> Res<()> {
255+
if key.kind != event::KeyEventKind::Press {
256+
return Ok(());
257+
}
258+
255259
let menu = match &self.state.pending_menu {
256260
None => Menu::Root,
257261
Some(menu) if menu.menu == Menu::Help => Menu::Root,

0 commit comments

Comments
 (0)