Krolyxon
Commit 07351da

rmptui07351da

i am blind at this ponit

Author
krolxon
Date
2024-04-28 23:17 +0530
Parent
4194bda
Commit
07351da9502c6c365496d14ea658fd0adfc5bf4f

+2 −2

1 file changed

  1. M src/handler.rs +2 −2
M src/handler.rs View
@@ -109,7 +109,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
109109 }
110110 } else if app.playlist_popup {
111111 match key_event.code {
112− KeyCode::Char('q') => {
112+ KeyCode::Char('q') | KeyCode::Esc => {
113113 app.playlist_popup = false;
114114 }
115115
@@ -156,7 +156,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
156156 } else {
157157 match key_event.code {
158158 // Quit
159− KeyCode::Char('q') | KeyCode::Esc => app.quit(),
159+ KeyCode::Char('q'),
160160 KeyCode::Char('c') | KeyCode::Char('C') => {
161161 if key_event.modifiers == KeyModifiers::CONTROL {
162162 app.quit();