summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-06-08 08:01:27 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-06-08 08:01:27 -0400
commit6ae5d03f82dcdb59256cee6fa71e208fd1db8645 (patch)
treea7e7275b7a61966af957b074867dae9055eac46f /src
parent88a10f349733114c954860a627675e25780f6372 (diff)
delete key on player view deletes current song
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 4dc34a2..087b57f 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3139,6 +3139,15 @@ key_down(void *data EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Key *ev)
3139 } 3139 }
3140 if ((!strcmp(ev->key, "q")) && (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)) 3140 if ((!strcmp(ev->key, "q")) && (ev->modifiers & ECORE_EVENT_MODIFIER_CTRL))
3141 ecore_main_loop_quit(); 3141 ecore_main_loop_quit();
3142 else if (!strcmp(ev->key, "Delete"))
3143 {
3144 if (empd_song_item)
3145 {
3146 Empd_Empdd_Song *so = elm_object_item_data_get(empd_song_item);
3147
3148 empd_empdd_delete_list_range_call(empd_proxy, so->song_pos, 1);
3149 }
3150 }
3142 else if (!strcmp(ev->key, "Escape")) 3151 else if (!strcmp(ev->key, "Escape"))
3143 { 3152 {
3144 if (ctxpopup) 3153 if (ctxpopup)