From dcc9dff5901e91f431cee5a169ddd3a20bbd3be5 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 30 May 2024 12:04:51 -0400 Subject: [PATCH] Update termion to 4.0 --- cursive/Cargo.toml | 2 +- cursive/src/backends/termion.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cursive/Cargo.toml b/cursive/Cargo.toml index 79365e4b..3a26f0b3 100644 --- a/cursive/Cargo.toml +++ b/cursive/Cargo.toml @@ -42,7 +42,7 @@ version = "0.17" [dependencies.termion] optional = true -version = "3" +version = "4" [dependencies.crossterm] optional = true diff --git a/cursive/src/backends/termion.rs b/cursive/src/backends/termion.rs index 236b0208..45e79abf 100644 --- a/cursive/src/backends/termion.rs +++ b/cursive/src/backends/termion.rs @@ -191,6 +191,9 @@ impl Backend { TMouseButton::Right => MouseEvent::Press(MouseButton::Right), TMouseButton::WheelUp => MouseEvent::WheelUp, TMouseButton::WheelDown => MouseEvent::WheelDown, + // TODO: Support left/right wheel moves? + // Or convert to left/right arrow keys? + TMouseButton::WheelLeft | TMouseButton::WheelRight => return Event::Refresh, }; if let MouseEvent::Press(btn) = event {