From 17107afb1ca5743efbf59aa90e9090bec16a6d66 Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Mon, 6 May 2024 15:40:22 -0700 Subject: [PATCH] fix: use should_ignore_key_event instead of filter --- tokio-console/src/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tokio-console/src/main.rs b/tokio-console/src/main.rs index 6eaa372a6..c38b7ba57 100644 --- a/tokio-console/src/main.rs +++ b/tokio-console/src/main.rs @@ -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 {