mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 00:03:49 +01:00
Allow using Ctrl-c to exit (#53)
This commit is contained in:
parent
086f4cc27c
commit
99f26ff383
@ -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 New Issue
Block a user