summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-05-08 00:02:39 +0100
committerGitHub <noreply@github.com>2021-05-08 00:02:39 +0100
commit99f26ff383d97ce45319fe9bd0586b3dfa35aa71 (patch)
tree667b5e0e8e891b4de15d322345abedcbd5e84d90
parent086f4cc27c2d78ffcf785e95252100f4e2f261af (diff)
Allow using Ctrl-c to exit (#53)
-rw-r--r--src/command/search.rs2
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);