Skip to content

Commit

Permalink
Continue when focus is lost and gained (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
worlpaker authored Dec 2, 2023
1 parent 29521ff commit 4e44b39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ impl EventHandler {
CrosstermEvent::Key(e) => sender.send(Event::Key(e)),
CrosstermEvent::Mouse(e) => sender.send(Event::Mouse(e)),
CrosstermEvent::Resize(w, h) => sender.send(Event::Resize(w, h)),
_ => unimplemented!(),
CrosstermEvent::FocusGained => Ok(()),
CrosstermEvent::FocusLost => Ok(()),
CrosstermEvent::Paste(_) => unimplemented!(),
}
.expect("failed to send terminal event")
}
Expand Down

0 comments on commit 4e44b39

Please sign in to comment.