1
0
mirror of https://github.com/atuinsh/atuin.git synced 2025-07-14 21:35:38 +02:00

Add Ctrl-d as a way of exiting the TUI ()

This commit is contained in:
Jamie Quigley
2021-05-08 15:04:33 +01:00
committed by GitHub
parent 220e2d05e3
commit 2e5f16a6a3

@ -153,7 +153,7 @@ async fn key_handler(
app: &mut State, app: &mut State,
) -> Option<String> { ) -> Option<String> {
match input { 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') => { Key::Char('\n') => {
let i = app.results_state.selected().unwrap_or(0); let i = app.results_state.selected().unwrap_or(0);