summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-09-07 16:17:25 +0900
committerJehun Lim <jehun.lim@samsung.com>2015-09-07 16:17:25 +0900
commit101379e8e52b6f6894362aa96444575847ee0011 (patch)
tree718e328694769388932ad1ed7f277941dbbe137d
parent4f66c5f49a440340f3de101f20803574d702e6e4 (diff)
downloadair_mediahub-101379e8e52b6f6894362aa96444575847ee0011.tar.gz
air_mediahub-101379e8e52b6f6894362aa96444575847ee0011.tar.bz2
air_mediahub-101379e8e52b6f6894362aa96444575847ee0011.zip
listmgr: move focus to content when BACK key is pressed on view button
Change-Id: Iea0770fc14639eeb94e74fa62999d74827e5b262 Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/util/listmgr.c4
-rw-r--r--src/view/base.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/src/util/listmgr.c b/src/util/listmgr.c
index cc11c19..8f61d8b 100644
--- a/src/util/listmgr.c
+++ b/src/util/listmgr.c
@@ -95,7 +95,9 @@ static void _view_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *ei)
if (!evas_object_visible_get(lmgr->base))
return;
- if (!strcmp(ev->keyname, KEY_UP)) {
+ if (!strcmp(ev->keyname, KEY_BACK) ||
+ !strcmp(ev->keyname, KEY_BACK_REMOTE) ||
+ !strcmp(ev->keyname, KEY_UP)) {
if (lmgr->focused == lmgr->play_info) {
play_info = elm_object_part_content_get(lmgr->focused,
PART_ITEM_CONTENT);
diff --git a/src/view/base.c b/src/view/base.c
index a24ad90..6dbf7b1 100644
--- a/src/view/base.c
+++ b/src/view/base.c
@@ -189,12 +189,6 @@ static void _key_down_cb(int id, void *data, Evas *e, Evas_Object *obj,
ui_app_exit();
break;
- case BASE_VIEW_BTN:
- if (!strcmp(ev->keyname, KEY_BACK) ||
- !strcmp(ev->keyname, KEY_BACK_REMOTE))
- ui_app_exit();
-
- break;
default:
break;
}