From 9777930868591abdf4a533e4059cc4fd08898521 Mon Sep 17 00:00:00 2001 From: nc Date: Wed, 5 Aug 2020 23:59:40 -0400 Subject: include only minimal code changes to add ctrl-c capturing functionality --- src/app/impl_view.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app') diff --git a/src/app/impl_view.rs b/src/app/impl_view.rs index 892b00c..5f313f7 100644 --- a/src/app/impl_view.rs +++ b/src/app/impl_view.rs @@ -165,6 +165,10 @@ impl View for App { self.message.set_kind(MessageKind::Info); return EventResult::Consumed(None); } + Event::CtrlChar('c') => { + self.message.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