aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2024-04-28 23:17:10 +0530
committerkrolxon <krolyxon@tutanota.com>2024-04-28 23:17:10 +0530
commit07351da9502c6c365496d14ea658fd0adfc5bf4f (patch)
tree0e28741088adcb1f5baec6b0edf2ae1cf0741f4e
parent4194bda11767be7bfd001e39041d6cf37fb1f90f (diff)
i am blind at this ponit
-rwxr-xr-xsrc/handler.rs4
1 files 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();