Skip to content

Commit

Permalink
fix: use should_ignore_key_event instead of filter
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed May 6, 2024
1 parent fdabae6 commit fadfbf3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tokio-console/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,7 @@ async fn main() -> color_eyre::Result<()> {
let mut state = State::default()
.with_task_linters(warnings.into_iter().map(|lint| lint.into()))
.with_retain_for(retain_for);
let mut input = Box::pin(input::EventStream::new().try_filter(|event| {
future::ready(!matches!(
event,
Event::Key(KeyEvent {
kind: KeyEventKind::Release,
..
})
))
}));
let mut input = Box::pin(input::EventStream::new());
let mut view = view::View::new(styles);

loop {
Expand Down

0 comments on commit fadfbf3

Please sign in to comment.