From 83814cf6ef67834032439ac47c7c20c1f2143e06 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 5 Dec 2021 17:55:22 -0500 Subject: let's just have one key binding per action for now --- src/bin/ttyplay/display.rs | 8 ++++---- src/bin/ttyplay/input.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bin/ttyplay/display.rs b/src/bin/ttyplay/display.rs index 4832c5d..72094f4 100644 --- a/src/bin/ttyplay/display.rs +++ b/src/bin/ttyplay/display.rs @@ -135,13 +135,13 @@ impl Display { output.move_to(size.0 - 11, size.1 - 23); output.write_str(" tab: hide/show ui "); output.move_to(size.0 - 10, size.1 - 23); - output.write_str(" h/p: previous frame "); + output.write_str(" h: previous fram "); output.move_to(size.0 - 9, size.1 - 23); - output.write_str(" l/n: next frame "); + output.write_str(" l: next frame "); output.move_to(size.0 - 8, size.1 - 23); - output.write_str(" g/0: first frame "); + output.write_str(" 0: first frame "); output.move_to(size.0 - 7, size.1 - 23); - output.write_str(" G/$: last frame "); + output.write_str(" $: last frame "); output.move_to(size.0 - 6, size.1 - 23); output.write_str(" +: increase speed "); output.move_to(size.0 - 5, size.1 - 23); diff --git a/src/bin/ttyplay/input.rs b/src/bin/ttyplay/input.rs index f46bd0a..6f394f5 100644 --- a/src/bin/ttyplay/input.rs +++ b/src/bin/ttyplay/input.rs @@ -45,22 +45,22 @@ pub fn spawn_task( } } else { let event = match key { - textmode::Key::Char('g' | '0' | ')') => { + textmode::Key::Char('0') => { crate::event::Event::TimerAction( crate::event::TimerAction::FirstFrame, ) } - textmode::Key::Char('G' | '$') => { + textmode::Key::Char('$') => { crate::event::Event::TimerAction( crate::event::TimerAction::LastFrame, ) } - textmode::Key::Char('l' | 'n') => { + textmode::Key::Char('l') => { crate::event::Event::TimerAction( crate::event::TimerAction::NextFrame, ) } - textmode::Key::Char('h' | 'p') => { + textmode::Key::Char('h') => { crate::event::Event::TimerAction( crate::event::TimerAction::PreviousFrame, ) -- cgit v1.2.3-54-g00ecf