1
//! Inherent intent handling for `ReportsTab`.
2
//!
3
//! Drawing stays on the inherent `draw(frame, area)` in `tabs::reports`; the
4
//! reports tab is driven via the command palette and only consumes the scroll
5
//! intents.
6

            
7
use crate::event::Intent;
8
use crate::tabs::reports::ReportsTab;
9
use crate::view::Handled;
10

            
11
impl ReportsTab {
12
169
    pub fn handle(&mut self, intent: Intent) -> Handled {
13
169
        if self.scroll_by(intent) {
14
27
            return Handled::Consumed(vec![]);
15
142
        }
16
142
        Handled::Ignored
17
169
    }
18
}