Allow use of enter key to connect to Wi-Fi AP in passcode entry popup 56/137756/1
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Fri, 7 Jul 2017 10:19:41 +0000 (15:49 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Fri, 7 Jul 2017 10:23:03 +0000 (15:53 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I5186d0132db270088ad9c304988803d014af2f99

src/layout/layout_network.c

index 170a06b075ab2293739e1cf2142193b5b66c6dbd..7df8dce8c1048f287ea4acf5b86681f31d8d6577 100644 (file)
@@ -1504,7 +1504,13 @@ static void _popup_entry_key_down_cb(void *data, Evas *e, Evas_Object *obj, void
        len = strlen(str);
        if (len >= MIN_WIRELESS_LEN) {
                if (elm_entry_input_panel_return_key_disabled_get(priv->passcode_entry) == EINA_TRUE) {
-                       elm_entry_input_panel_return_key_disabled_set(priv->passcode_entry, EINA_FALSE); }
+                       elm_entry_input_panel_return_key_disabled_set(priv->passcode_entry, EINA_FALSE);
+               }
+               if(!strcmp(ev->keyname, KEY_ENTER)) {
+                       _popup_connecting_wireless_status(priv);
+                       _connect_wifi_with_passcode(priv);
+               }
+
        } else {
                elm_entry_input_panel_return_key_disabled_set(priv->passcode_entry, EINA_TRUE);
        }