Exit Wi-Fi passcode view on remote back key press 58/40758/1
authorShuhrat Dehkanov <sh.dehkanov@samsung.com>
Mon, 8 Jun 2015 23:19:16 +0000 (08:19 +0900)
committerShuhrat Dehkanov <sh.dehkanov@samsung.com>
Mon, 8 Jun 2015 23:19:16 +0000 (08:19 +0900)
Change-Id: I9fc5fcc0540624337f046973463370a82e0e7bbb

ug/network/src/wifi_passcode_view.c

index 42bda01..93e8c54 100644 (file)
@@ -168,7 +168,7 @@ static int _create_dim_layout(struct _priv *priv)
 /**
  * Callback for key pressed event.
  *
- * If the key is KEY_BACK, delete this view.
+ * If the key is KEY_BACK or KEY_BACK_REMOTE, delete this view.
  *
  * @param[in] data User data
  * @param[in] e Evas handler
@@ -194,7 +194,8 @@ static void _base_key_press_cb(void *data, Evas *e,
                return;
        }
 
-       if (!strcmp(ev->keyname, KEY_BACK))
+       if (!strcmp(ev->keyname, KEY_BACK)
+                       || !strcmp(ev->keyname, KEY_BACK_REMOTE))
                viewmgr_pop(priv->vmgr);
 }
 
@@ -280,7 +281,7 @@ static void _ctxpopup_unfocused_cb(void *data,
 /**
 * @Evas_Object_Event_Cb type callback for handling pressed event.
 *
-* When KEY_BACK is pressed in the ctxpopup, delete the ctxpopup.
+* When KEY_BACK or KEY_BACK_REMOTE is pressed in the ctxpopup, delete it.
 *
 * @param[in] data User data
 * @param[in] e Evas handler
@@ -306,7 +307,8 @@ static void _ctxpopup_pressed_cb(void *data, Evas *e,
                return;
        }
 
-       if (!strcmp(ev->keyname, KEY_BACK)) {
+       if (!strcmp(ev->keyname, KEY_BACK)
+                       || !strcmp(ev->keyname, KEY_BACK_REMOTE)) {
                _unset_layout_dim(priv);
                evas_object_del(obj);