aboutsummaryrefslogtreecommitdiff
path: root/src/views.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/views.rs')
-rw-r--r--src/views.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views.rs b/src/views.rs
index 54d5431..f06978c 100644
--- a/src/views.rs
+++ b/src/views.rs
@@ -135,6 +135,9 @@ where
135 135
136 fn on_event(&mut self, e: Event) -> EventResult { 136 fn on_event(&mut self, e: Event) -> EventResult {
137 let now = Local::now().naive_utc().date(); 137 let now = Local::now().naive_utc().date();
138 if self.is_auto() {
139 return EventResult::Consumed(None);
140 }
138 match e { 141 match e {
139 Event::Key(Key::Enter) | Event::Char('n') => { 142 Event::Key(Key::Enter) | Event::Char('n') => {
140 self.modify(now, TrackEvent::Increment); 143 self.modify(now, TrackEvent::Increment);