summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJamie Quigley <jamie@quigley.xyz>2021-05-08 15:04:33 +0100
committerGitHub <noreply@github.com>2021-05-08 14:04:33 +0000
commit2e5f16a6a399d596d9e8eed19740cd851187def9 (patch)
tree581a630b81a1a46c607e86a5a32cf0fb438c5b42 /src
parent220e2d05e332580d7b4dafe56b8da157fed7ea6e (diff)
Add Ctrl-d as a way of exiting the TUI (#65)
Diffstat (limited to 'src')
-rw-r--r--src/command/search.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/search.rs b/src/command/search.rs
index 6f351eb6..93f7451f 100644
--- a/src/command/search.rs
+++ b/src/command/search.rs
@@ -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);