mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 08:13:57 +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,
|
app: &mut State,
|
||||||
) -> Option<String> {
|
) -> Option<String> {
|
||||||
match input {
|
match input {
|
||||||
Key::Esc => return Some(String::from("")),
|
Key::Esc | Key::Ctrl('c') => return Some(String::from("")),
|
||||||
Key::Char('\n') => {
|
Key::Char('\n') => {
|
||||||
let i = app.results_state.selected().unwrap_or(0);
|
let i = app.results_state.selected().unwrap_or(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user