i am blind at this ponit
This commit is contained in:
parent
4194bda117
commit
07351da950
|
|
@ -109,7 +109,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
|
||||||
}
|
}
|
||||||
} else if app.playlist_popup {
|
} else if app.playlist_popup {
|
||||||
match key_event.code {
|
match key_event.code {
|
||||||
KeyCode::Char('q') => {
|
KeyCode::Char('q') | KeyCode::Esc => {
|
||||||
app.playlist_popup = false;
|
app.playlist_popup = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -156,7 +156,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
|
||||||
} else {
|
} else {
|
||||||
match key_event.code {
|
match key_event.code {
|
||||||
// Quit
|
// Quit
|
||||||
KeyCode::Char('q') | KeyCode::Esc => app.quit(),
|
KeyCode::Char('q'),
|
||||||
KeyCode::Char('c') | KeyCode::Char('C') => {
|
KeyCode::Char('c') | KeyCode::Char('C') => {
|
||||||
if key_event.modifiers == KeyModifiers::CONTROL {
|
if key_event.modifiers == KeyModifiers::CONTROL {
|
||||||
app.quit();
|
app.quit();
|
||||||
|
|
|
||||||
Reference in New Issue