From 07351da9502c6c365496d14ea658fd0adfc5bf4f Mon Sep 17 00:00:00 2001 From: krolxon Date: Sun, 28 Apr 2024 23:17:10 +0530 Subject: [PATCH] i am blind at this ponit --- src/handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handler.rs b/src/handler.rs index 5ba1356..6b44414 100755 --- a/src/handler.rs +++ b/src/handler.rs @@ -109,7 +109,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { } } else if app.playlist_popup { match key_event.code { - KeyCode::Char('q') => { + KeyCode::Char('q') | KeyCode::Esc => { app.playlist_popup = false; } @@ -156,7 +156,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { } else { match key_event.code { // Quit - KeyCode::Char('q') | KeyCode::Esc => app.quit(), + KeyCode::Char('q'), KeyCode::Char('c') | KeyCode::Char('C') => { if key_event.modifiers == KeyModifiers::CONTROL { app.quit();