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 authored and Rustin170506 committed May 11, 2024
1 parent 57f7f69 commit 2f3d58e
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 2f3d58e

Please sign in to comment.