diff options
author | Ellie Huxtable <e@elm.sh> | 2021-05-08 00:02:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 00:02:39 +0100 |
commit | 99f26ff383d97ce45319fe9bd0586b3dfa35aa71 (patch) | |
tree | 667b5e0e8e891b4de15d322345abedcbd5e84d90 | |
parent | 086f4cc27c2d78ffcf785e95252100f4e2f261af (diff) |
Allow using Ctrl-c to exit (#53)
-rw-r--r-- | src/command/search.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> { 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); |