Skip to content

Commit

Permalink
Update termion to 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed May 30, 2024
1 parent 03451ae commit dcc9dff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cursive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ version = "0.17"

[dependencies.termion]
optional = true
version = "3"
version = "4"

[dependencies.crossterm]
optional = true
Expand Down
3 changes: 3 additions & 0 deletions cursive/src/backends/termion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dcc9dff

Please sign in to comment.