Lines
100 %
Functions
Branches
//! Inherent intent handling for `ReportsTab`.
//!
//! Drawing stays on the inherent `draw(frame, area)` in `tabs::reports`; the
//! reports tab is driven via the command palette and only consumes the scroll
//! intents.
use crate::event::Intent;
use crate::tabs::reports::ReportsTab;
use crate::view::Handled;
impl ReportsTab {
pub fn handle(&mut self, intent: Intent) -> Handled {
if self.scroll_by(intent) {
return Handled::Consumed(vec![]);
}
Handled::Ignored