summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2015-09-16 18:10:31 -0400
committerzmike <michael.blumenkrantz@gmail.com>2015-09-16 18:11:58 -0400
commit5d1baba0aa5b4b0d1681110ad49c2cd179573214 (patch)
tree6c9abb034c5bed21f519444296f4cf44812dec87 /src
parent2157ed3e66d862ecdfe45e2426155253028c84a6 (diff)
allow enter key to activate first selected item in player view
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 84792f1..c4daa48 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3219,6 +3219,14 @@ key_down(void *data EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Key *ev)
3219 filesystem_entry_key_select(1, 1, 0, ev->modifiers & ECORE_EVENT_MODIFIER_SHIFT); 3219 filesystem_entry_key_select(1, 1, 0, ev->modifiers & ECORE_EVENT_MODIFIER_SHIFT);
3220 else if (bgchooser && ((!strcmp(ev->key, "Return")) || (!strcmp(ev->key, "KP_Enter")))) 3220 else if (bgchooser && ((!strcmp(ev->key, "Return")) || (!strcmp(ev->key, "KP_Enter"))))
3221 elm_layout_signal_emit(layout, "empc,bg_chooser,stop", "empc"); 3221 elm_layout_signal_emit(layout, "empc,bg_chooser,stop", "empc");
3222 else if ((!filesystem_state) && (!queue_list_state) && elm_genlist_selected_item_get(queue_list) &&
3223 ((!strcmp(ev->key, "Return")) || (!strcmp(ev->key, "KP_Enter"))))
3224 {
3225 Empd_Empdd_Song *so;
3226
3227 so = elm_object_item_data_get(elm_genlist_selected_item_get(queue_list));
3228 empd_empdd_play_id_call(empd_proxy, so->songid);
3229 }
3222 else if ((!(ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)) && (!(ev->modifiers & ECORE_EVENT_MODIFIER_ALT)) && 3230 else if ((!(ev->modifiers & ECORE_EVENT_MODIFIER_CTRL)) && (!(ev->modifiers & ECORE_EVENT_MODIFIER_ALT)) &&
3223 (!(ev->modifiers & ECORE_EVENT_MODIFIER_ALTGR)) && (!(ev->modifiers & ECORE_EVENT_MODIFIER_WIN))) 3231 (!(ev->modifiers & ECORE_EVENT_MODIFIER_ALTGR)) && (!(ev->modifiers & ECORE_EVENT_MODIFIER_WIN)))
3224 return ECORE_CALLBACK_RENEW; 3232 return ECORE_CALLBACK_RENEW;