Returns a reference to the currently selected paper. Returns None if no paper is selected (should never happen in practice as we always maintain a selection).
(&self)
| 123 | /// Returns None if no paper is selected (should never happen in practice |
| 124 | /// as we always maintain a selection). |
| 125 | pub fn selected_paper(&self) -> Option<&Paper> { |
| 126 | self.selected.selected().map(|i| &self.papers[i]) |
| 127 | } |
| 128 | |
| 129 | /// Handles button inputs in the home page |
| 130 | pub fn handle_input(&mut self, key: KeyCode, modifiers: KeyModifiers) -> bool { |
no outgoing calls
no test coverage detected