rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=379800c53cb0601529f8c4e5d00ef7c2ff1e4190
commit 379800c53cb0601529f8c4e5d00ef7c2ff1e4190 Author: Andrii Kroitor <[email protected]> Date: Thu May 26 09:48:23 2016 +0300 main_window: handle quit shortcut --- src/bin/ui/main_window.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/ui/main_window.c b/src/bin/ui/main_window.c index 7991b46..6f6dff1 100644 --- a/src/bin/ui/main_window.c +++ b/src/bin/ui/main_window.c @@ -39,9 +39,9 @@ _project_navigator_group_open(void *data __UNUSED__, } static void -_on_done(void *data __UNUSED__, - Evas_Object *obj __UNUSED__, - void *event_info __UNUSED__) +_close_request(void *data __UNUSED__, + Evas_Object *obj __UNUSED__, + void *event_info __UNUSED__) { ui_main_window_del(); } @@ -86,7 +86,8 @@ ui_main_window_add(void) elm_win_title_set(ap.win, "EFL Edje Theme Editor"); - evas_object_smart_callback_add(ap.win, "delete,request", _on_done, NULL); + evas_object_smart_callback_add(ap.win, "delete,request", _close_request, NULL); + evas_object_smart_callback_add(ap.win, SIGNAL_SHORTCUT_QUIT, _close_request, NULL); if (!cursor_main_set(ap.win, CURSOR_ARROW)) { ERR("Main cursor not setted."); --
