summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2017-05-19 13:44:02 -0400
committerzmike <michael.blumenkrantz@gmail.com>2017-05-19 13:44:21 -0400
commit32c53b57e4032e24d138c351cd9cd27b4ba166d0 (patch)
treed83016199c8ff685ba8a5af3428a55f70c455209
parentcf2057ae96edcbb3afb74ba2d95088e97fdfbca8 (diff)
use spacebar for toggling play/pause in player view
-rw-r--r--README1
-rw-r--r--src/bin/empc.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/README b/README
index 43af936..2e089cf 100644
--- a/README
+++ b/README
@@ -55,6 +55,7 @@ Controls:
55 Delete -> delete currently playing song from queue 55 Delete -> delete currently playing song from queue
56 Ctrl+Delete -> delete currently playing album from queue 56 Ctrl+Delete -> delete currently playing album from queue
57 Enter/Return -> activate (play) first selected item in playlist 57 Enter/Return -> activate (play) first selected item in playlist
58 Spacebar -> Toggle play/pause
58 59
59 Playlist view: 60 Playlist view:
60 Left -> player view 61 Left -> player view
diff --git a/src/bin/empc.c b/src/bin/empc.c
index ef69610..e479795 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3273,6 +3273,11 @@ key_down(void *data EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Key *ev)
3273 empd_empdd_delete_list_range_call(empd_proxy, so->song_pos, 1); 3273 empd_empdd_delete_list_range_call(empd_proxy, so->song_pos, 1);
3274 } 3274 }
3275 } 3275 }
3276 else if ((!(ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)) && (!ctxpopup) &&
3277 (!queue_list_state) && (!filesystem_state) && (!strcmp(ev->key, "space")))
3278 {
3279 control_toggle();
3280 }
3276 else if (!strcmp(ev->key, "Escape")) 3281 else if (!strcmp(ev->key, "Escape"))
3277 { 3282 {
3278 if (ctxpopup) 3283 if (ctxpopup)