Allow using Ctrl-c to exit (#53)
This commit is contained in:
parent
086f4cc27c
commit
99f26ff383
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue