Fix handling backspace key on new network menu 26/92726/2
authorJiwan Kim <ji-wan.kim@samsung.com>
Tue, 18 Oct 2016 09:42:24 +0000 (18:42 +0900)
committerJiwan Kim <ji-wan.kim@samsung.com>
Tue, 18 Oct 2016 09:44:40 +0000 (18:44 +0900)
 - Fix for TSAM-9096

Change-Id: I206eec046632e38e3e4989178a21731af51c635d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
src/layout/layout_network.c
src/view/view_new_network.c

index c910e02..386d8ac 100644 (file)
@@ -475,6 +475,10 @@ static void _grid_focused_cb(int id, void *data, Evas_Object *obj, Elm_Object_It
                return;
        }
 
+       /* If popup is shown, revert focus to popup */
+       if (priv->passcode_popup)
+               elm_object_focus_set(priv->popup_btn2, EINA_TRUE);
+
        priv->focused_wireless_item = item;
 
        /* Unfocus other items */
index 3b43a66..3394ef0 100644 (file)
@@ -312,7 +312,7 @@ static void _base_key_down_cb(int id, void *data, Evas *e, Evas_Object *obj,
                return;
        }
 
-       if (!strcmp(ev->keyname, KEY_BACK) || !strcmp(ev->keyname, KEY_BACK_WAY)
+       if (!strcmp(ev->keyname, KEY_BACK)
                || !strcmp(ev->keyname, KEY_ESC) || !strcmp(ev->keyname, KEY_ESC_WAY)
                ) {
                _set_result(priv, EO_BTN_CANCEL);