mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-18 07:57:09 +02:00
Add Ctrl-d as a way of exiting the TUI (#65)
This commit is contained in:
parent
220e2d05e3
commit
2e5f16a6a3
@ -153,7 +153,7 @@ async fn key_handler(
|
||||
app: &mut State,
|
||||
) -> Option<String> {
|
||||
match input {
|
||||
Key::Esc | Key::Ctrl('c') => return Some(String::from("")),
|
||||
Key::Esc | Key::Ctrl('c') | Key::Ctrl('d') => return Some(String::from("")),
|
||||
Key::Char('\n') => {
|
||||
let i = app.results_state.selected().unwrap_or(0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user