Skip to content

Commit

Permalink
Allow using Ctrl-c to exit (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed May 7, 2021
1 parent 086f4cc commit 99f26ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 99f26ff

Please sign in to comment.