Excluding home key click from app termination conditions 83/228783/1
authorYunjin Lee <yunjin-.lee@samsung.com>
Wed, 25 Mar 2020 11:21:10 +0000 (20:21 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Wed, 25 Mar 2020 11:21:10 +0000 (20:21 +0900)
- If home key is clicked, popup app will go backgrounded with its
caller app.

Change-Id: I8c184872db2325d7a8472f85b491b65c572ead4c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
ui/src/popup.c

index ba2e653..666dce6 100644 (file)
@@ -195,7 +195,7 @@ Eina_Bool __hw_key_clicked_cb(void *data, int type, void *event_info)
        Ecore_Event_Key *ev = (Ecore_Event_Key*)event_info;
        ALOGD("HW key clicked. type <%d> pressed key is <%s>", type, ev->key);
        if (ev->event_flags & ECORE_EVENT_FLAG_CANCEL) return ECORE_CALLBACK_PASS_ON;
-       if (!strcmp(ev->key, "XF86Home") || !strcmp(ev->key, "XF86Back")) {
+       if (!strcmp(ev->key, "XF86Back")) {
                ui_app_exit();
        }
        return EINA_TRUE;