diff options
author | nc <charles.saternos@gmail.com> | 2020-07-28 19:16:32 -0400 |
---|---|---|
committer | nc <charles.saternos@gmail.com> | 2020-07-28 19:16:32 -0400 |
commit | 20f7419c3d6d70ba8cfd996490020a5e1f2ad06d (patch) | |
tree | 7f7d5b663e412b064c87f220383391f6ee45a4b9 | |
parent | 19de1653985520258bd081e32275c48e2ac98f5b (diff) |
add ctrlc to on_event trigger
-rw-r--r-- | src/app/impl_view.rs | 4 |
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 { 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 |