aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-05 17:55:22 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-05 17:59:17 -0500
commit83814cf6ef67834032439ac47c7c20c1f2143e06 (patch)
treead279c2c3de5e9a25dab166433febf90d391ff75
parent20ab235cb689fed89c2e8bbace8a792af2031a8e (diff)
downloadttyrec-bin-83814cf6ef67834032439ac47c7c20c1f2143e06.tar.gz
ttyrec-bin-83814cf6ef67834032439ac47c7c20c1f2143e06.zip
let's just have one key binding per action for now
-rw-r--r--src/bin/ttyplay/display.rs8
-rw-r--r--src/bin/ttyplay/input.rs8
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,
)