From: Minkyu Kang Date: Sat, 8 Aug 2015 07:23:35 +0000 (+0900) Subject: handler: use key down instead of key up X-Git-Tag: accepted/tizen/tv/20150810.001221^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea8bb99e37142a45c949a8b313a0e514425e5dfd;p=profile%2Ftv%2Fapps%2Fnative%2Fair_mediahub.git handler: use key down instead of key up Change-Id: I5460cb2b6a860eaf8e5e1fbf3527e69c3fdad751 Signed-off-by: Minkyu Kang --- diff --git a/src/util/timeout_handler.c b/src/util/timeout_handler.c index 148c41e..08811bb 100644 --- a/src/util/timeout_handler.c +++ b/src/util/timeout_handler.c @@ -78,8 +78,8 @@ static Eina_Bool _event_occured(void *data, int type, void *event) return ECORE_CALLBACK_PASS_ON; /* Don't handle Volume and Channel keys */ - if (type == ECORE_EVENT_KEY_UP) { - Evas_Event_Key_Up *ev; + if (type == ECORE_EVENT_KEY_DOWN) { + Evas_Event_Key_Down *ev; if (!event) return ECORE_CALLBACK_PASS_ON; @@ -127,7 +127,7 @@ struct timeout_handler *timeout_handler_init(double timeout, Ecore_Event_Handler *ev; int i; int event_type[] = { - ECORE_EVENT_KEY_UP, + ECORE_EVENT_KEY_DOWN, ECORE_EVENT_MOUSE_BUTTON_DOWN, ECORE_EVENT_MOUSE_BUTTON_UP, ECORE_EVENT_MOUSE_MOVE, diff --git a/src/view/viewer.c b/src/view/viewer.c index 56c6961..3c812a2 100644 --- a/src/view/viewer.c +++ b/src/view/viewer.c @@ -666,8 +666,8 @@ static Eina_Bool _event_cb(void *data, int type, void *ei) priv = data; - if (type == ECORE_EVENT_KEY_UP) { - Evas_Event_Key_Up *ev; + if (type == ECORE_EVENT_KEY_DOWN) { + Evas_Event_Key_Down *ev; if (!ei) return ECORE_CALLBACK_PASS_ON;