discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=7393732af1eb1f45793730972ac55c641fd0bd48

commit 7393732af1eb1f45793730972ac55c641fd0bd48
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Jan 19 18:41:03 2015 -0500

    show ctxpopup with ctrl+enter for queue and filesystem
---
 src/bin/empc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/empc.c b/src/bin/empc.c
index 18b8584..ed393d4 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -3063,6 +3063,13 @@ key_down(void *data EINA_UNUSED, int t EINA_UNUSED, 
Ecore_Event_Key *ev)
                  ((!filesystem_state) || 
(eina_list_count(elm_gengrid_selected_items_get(eina_list_last_data_get(filesystems)))
 == 1)))
                elm_cnp_selection_get(win, ELM_SEL_TYPE_CLIPBOARD, 
ELM_SEL_FORMAT_IMAGE | ELM_SEL_FORMAT_TEXT, (Elm_Drop_Cb)bg_paste, NULL);
           }
+        else if ((!strcmp(ev->key, "Return")) || (!strcmp(ev->key, 
"KP_Enter")))
+          {
+             if (filesystem_state)
+               filesystem_ctxpopup_show(eina_list_last_data_get(filesystems));
+             else if (queue_list_state && 
elm_genlist_selected_items_get(queue_list))
+               queue_list_ctxpopup_show(queue_list);
+          }
         break;
      }
    return ECORE_CALLBACK_DONE;

-- 


Reply via email to