aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index d8ef738..7595ea0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -334,15 +334,18 @@ fn handle_input(event: termion::event::Event, tweeter: &mut tw::TwitterCache, qu
}
}
},
- Event::Key(Key::End) => {
- display_info.infos_seek = 0;
- }
Event::Key(Key::PageUp) => {
display_info.infos_seek = display_info.infos_seek.saturating_add(1);
}
Event::Key(Key::PageDown) => {
display_info.infos_seek = display_info.infos_seek.saturating_sub(1);
}
+ Event::Key(Key::Home) => {
+ display_info.log_seek = display_info.log_seek.saturating_add(1);
+ }
+ Event::Key(Key::End) => {
+ display_info.log_seek = display_info.log_seek.saturating_sub(1);
+ }
Event::Key(Key::Esc) => {
display_info.mode = None;
}