Add Home and End support for top and bottom

This commit is contained in:
Dheepak Krishnamurthy 2020-11-03 12:47:10 -07:00
parent cd233ffb54
commit b755c23c1a

View file

@ -1261,8 +1261,8 @@ impl TTApp {
AppMode::TaskReport => match input { AppMode::TaskReport => match input {
Key::Ctrl('c') | Key::Char('q') => self.should_quit = true, Key::Ctrl('c') | Key::Char('q') => self.should_quit = true,
Key::Char('r') => self.update()?, Key::Char('r') => self.update()?,
Key::Char('g') => self.task_report_top(), Key::Home | Key::Char('g') => self.task_report_top(),
Key::Char('G') => self.task_report_bottom(), Key::End | Key::Char('G') => self.task_report_bottom(),
Key::Down | Key::Char('j') => self.task_report_next(), Key::Down | Key::Char('j') => self.task_report_next(),
Key::Up | Key::Char('k') => self.task_report_previous(), Key::Up | Key::Char('k') => self.task_report_previous(),
Key::PageDown | Key::Char('J') => self.task_report_next_page(), Key::PageDown | Key::Char('J') => self.task_report_next_page(),