From 20f7419c3d6d70ba8cfd996490020a5e1f2ad06d Mon Sep 17 00:00:00 2001 From: nc Date: Tue, 28 Jul 2020 19:16:32 -0400 Subject: add ctrlc to on_event trigger --- src/app/impl_view.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 { self.message.write().unwrap().set_kind(MessageKind::Info); return EventResult::Consumed(None); } + Event::CtrlChar('c') => { + self.message.write().unwrap().set_message("Use the :q command to quit"); + return EventResult::Consumed(None); + } /* Every keybind that is not caught by App trickles * down to the focused habit. We sift back to today -- cgit v1.2.3