summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjinwoo.shin <jw0227.shin@samsung.com>2015-10-14 10:27:08 +0900
committerjinwoo.shin <jw0227.shin@samsung.com>2015-10-14 10:27:08 +0900
commit6e8f73dd490d4b82343f22118097308b209d79e7 (patch)
treecddfd6a693a932c53162e49ce52166de085cdd40 /src
parentd43ddb14c6a940553168a2741d11d6817f1cf98f (diff)
downloadair_livetv-6e8f73dd490d4b82343f22118097308b209d79e7.tar.gz
air_livetv-6e8f73dd490d4b82343f22118097308b209d79e7.tar.bz2
air_livetv-6e8f73dd490d4b82343f22118097308b209d79e7.zip
Change-Id: Ie78c070d5bd848d309fa9e878b7e026cb98351d7 Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 95985bf..c2c33a6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}