From 99f26ff383d97ce45319fe9bd0586b3dfa35aa71 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 8 May 2021 00:02:39 +0100 Subject: [PATCH] Allow using Ctrl-c to exit (#53) --- src/command/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/search.rs b/src/command/search.rs index 76a6a42c..6f351eb6 100644 --- a/src/command/search.rs +++ b/src/command/search.rs @@ -153,7 +153,7 @@ async fn key_handler( app: &mut State, ) -> Option { match input { - Key::Esc => return Some(String::from("")), + Key::Esc | Key::Ctrl('c') => return Some(String::from("")), Key::Char('\n') => { let i = app.results_state.selected().unwrap_or(0);