aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ttyplay/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ttyplay/input.rs')
-rw-r--r--src/bin/ttyplay/input.rs19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/bin/ttyplay/input.rs b/src/bin/ttyplay/input.rs
index 8c45b69..266c419 100644
--- a/src/bin/ttyplay/input.rs
+++ b/src/bin/ttyplay/input.rs
@@ -30,16 +30,15 @@ pub fn spawn_task(
crate::event::TimerAction::Pause,
),
textmode::Key::Ctrl(b'i') => crate::event::Event::ToggleUi,
- textmode::Key::Char('=' | '+') => {
- crate::event::Event::TimerAction(
- crate::event::TimerAction::SpeedUp,
- )
- }
- textmode::Key::Char('_' | '-') => {
- crate::event::Event::TimerAction(
- crate::event::TimerAction::SlowDown,
- )
- }
+ textmode::Key::Char('+') => crate::event::Event::TimerAction(
+ crate::event::TimerAction::SpeedUp,
+ ),
+ textmode::Key::Char('-') => crate::event::Event::TimerAction(
+ crate::event::TimerAction::SlowDown,
+ ),
+ textmode::Key::Char('=') => crate::event::Event::TimerAction(
+ crate::event::TimerAction::DefaultSpeed,
+ ),
_ => continue,
};
event_w.send(event).await.unwrap();