diff options
| author | mo8it <mo8it@proton.me> | 2024-04-27 23:42:09 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-27 23:42:09 +0200 |
| commit | 75e2804c8369f2414318f58573444fa8e49d03f2 (patch) | |
| tree | 18585e135b9cfe9c00ea769e3b550f43c643e1de /src | |
| parent | c45d2c3255b6b606debfd16ef135f64f31f604d7 (diff) | |
Esacpe the list with ESC
Diffstat (limited to 'src')
| -rw-r--r-- | src/list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.rs b/src/list.rs index 790c02f..40a069a 100644 --- a/src/list.rs +++ b/src/list.rs @@ -42,7 +42,7 @@ pub fn list(app_state: &mut AppState) -> Result<()> { ui_state.message.clear(); match key.code { - KeyCode::Char('q') => break, + KeyCode::Esc | KeyCode::Char('q') => break, KeyCode::Down | KeyCode::Char('j') => ui_state.select_next(), KeyCode::Up | KeyCode::Char('k') => ui_state.select_previous(), KeyCode::Home | KeyCode::Char('g') => ui_state.select_first(), |
