summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornc <charles.saternos@gmail.com>2020-08-06 14:51:26 -0400
committernc <charles.saternos@gmail.com>2020-08-06 14:51:26 -0400
commit78685f7cdca15a191a5d086321368e475b0c2ab2 (patch)
tree6d613a1b59ca277a82c8a688ec029774d10f31d5
parent9777930868591abdf4a533e4059cc4fd08898521 (diff)
Revert "include only minimal code changes to add ctrl-c capturing functionality"
-rw-r--r--src/app/impl_view.rs4
-rw-r--r--src/main.rs4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/app/impl_view.rs b/src/app/impl_view.rs
index 5f313f7..892b00c 100644
--- a/src/app/impl_view.rs
+++ b/src/app/impl_view.rs
@@ -165,10 +165,6 @@ 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
diff --git a/src/main.rs b/src/main.rs
index 3ec964a..d96119e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -52,10 +52,6 @@ fn main() {
} else {
let mut s = termion().unwrap();
let app = App::load_state();
-
- // prevent Ctrl-C from killing the app and allow the app to override it.
- s.clear_global_callbacks(cursive::event::Event::CtrlChar('c'));
-
let layout = NamedView::new(
"Frame",
LinearLayout::vertical().child(NamedView::new("Main", app)),