Relocate Super_L handling code 87/49487/1 accepted/tizen/tv/20151014.093643 submit/tizen/20151014.084340 tizen_3.0.m2.a1_tv_release
authorjinwoo.shin <jw0227.shin@samsung.com>
Wed, 14 Oct 2015 01:27:08 +0000 (10:27 +0900)
committerjinwoo.shin <jw0227.shin@samsung.com>
Wed, 14 Oct 2015 01:27:08 +0000 (10:27 +0900)
Change-Id: Ie78c070d5bd848d309fa9e878b7e026cb98351d7
Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
src/main.c

index 95985bf..c2c33a6 100644 (file)
@@ -87,6 +87,13 @@ static Eina_Bool _event(void *data, Evas_Object *obj, Evas_Object *src,
        char *keyname;
        int update_type;
 
+       if (type == EVAS_CALLBACK_KEY_DOWN &&
+                       !strcmp(((Evas_Event_Key_Down *)ei)->keyname,
+                       KEY_SUPER_L)) {
+               util_launch_home();
+               return EINA_TRUE;
+       }
+
        if (!data) {
                _ERR("failed to get data");
                return EINA_FALSE;
@@ -122,12 +129,6 @@ static Eina_Bool _event(void *data, Evas_Object *obj, Evas_Object *src,
                }
        }
 
-       if (type == EVAS_CALLBACK_KEY_DOWN &&
-                       !strcmp(keyname, KEY_SUPER_L)) {
-               util_launch_home();
-               return EINA_TRUE;
-       }
-
        return EINA_FALSE;
 }