i am blind at this ponit

This commit is contained in:
krolxon 2024-04-28 23:17:10 +05:30
parent 4194bda117
commit 07351da950
1 changed files with 2 additions and 2 deletions

View File

@ -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();