aboutsummaryrefslogtreecommitdiff
path: root/src/app/impl_view.rs
diff options
context:
space:
mode:
authornc <[email protected]>2020-07-29 00:16:32 +0100
committernc <[email protected]>2020-07-29 00:16:32 +0100
commit20f7419c3d6d70ba8cfd996490020a5e1f2ad06d (patch)
tree7f7d5b663e412b064c87f220383391f6ee45a4b9 /src/app/impl_view.rs
parent19de1653985520258bd081e32275c48e2ac98f5b (diff)
add ctrlc to on_event trigger
Diffstat (limited to 'src/app/impl_view.rs')
-rw-r--r--src/app/impl_view.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/impl_view.rs b/src/app/impl_view.rs
index acc387e..b735003 100644
--- a/src/app/impl_view.rs
+++ b/src/app/impl_view.rs
@@ -165,6 +165,10 @@ impl View for App {
165 self.message.write().unwrap().set_kind(MessageKind::Info); 165 self.message.write().unwrap().set_kind(MessageKind::Info);
166 return EventResult::Consumed(None); 166 return EventResult::Consumed(None);
167 } 167 }
168 Event::CtrlChar('c') => {
169 self.message.write().unwrap().set_message("Use the :q command to quit");
170 return EventResult::Consumed(None);
171 }
168 172
169 /* Every keybind that is not caught by App trickles 173 /* Every keybind that is not caught by App trickles
170 * down to the focused habit. We sift back to today 174 * down to the focused habit. We sift back to today