diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-03-16 15:16:12 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-03-19 03:39:16 +0000 |
commit | b54a09cb14441e4b31d397d6ca68b60eec38c436 (patch) | |
tree | 2479a45df82519871945aca4e3dfde3c9a32b83c | |
parent | 6df942b27da3d56cc8e29df309ae4c791aa0ac32 (diff) | |
download | askuser-popup-b54a09cb14441e4b31d397d6ca68b60eec38c436.tar.gz askuser-popup-b54a09cb14441e4b31d397d6ca68b60eec38c436.tar.bz2 askuser-popup-b54a09cb14441e4b31d397d6ca68b60eec38c436.zip |
Handle hw key event cancel
Change-Id: Icf55b57bed7fc183b44f842e587b39422c9b766c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rw-r--r-- | ui/src/popup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/popup.c b/ui/src/popup.c index 3037e49..1f009c8 100644 --- a/ui/src/popup.c +++ b/ui/src/popup.c @@ -248,6 +248,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, "XF86PowerOff") || !strcmp(ev->key, "XF86Back")) { ui_app_exit(); } |