aboutsummaryrefslogtreecommitdiff
path: root/src/event/handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/handler.rs')
-rwxr-xr-xsrc/event/handler.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/event/handler.rs b/src/event/handler.rs
index 5a83c1e..29da20c 100755
--- a/src/event/handler.rs
+++ b/src/event/handler.rs
@@ -33,10 +33,16 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
// Playback controls
// Toggle Pause
- KeyCode::Char('p') => app.conn.toggle_pause(),
+ KeyCode::Char('p') => {
+ app.conn.toggle_pause();
+ app.conn.update_status();
+ }
// Pause
- KeyCode::Char('s') => app.conn.pause(),
+ KeyCode::Char('s') => {
+ app.conn.pause();
+ app.conn.update_status();
+ }
// Toggle rpeat
KeyCode::Char('r') => {
@@ -51,7 +57,10 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
}
// Dmenu prompt
- KeyCode::Char('D') => app.conn.play_dmenu()?,
+ KeyCode::Char('D') => {
+ app.conn.play_dmenu()?;
+ app.conn.update_status();
+ }
// add to queue
KeyCode::Char('a') => app.playlist_popup = true,