fixup! If click link, appear IME keyboad in moved page.
authorhyunjune.kim <hyunjune.kim@samsung.com>
Wed, 25 Feb 2015 05:33:52 +0000 (14:33 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
By mini_browser implementation, when click <a href ... target="_blank">
element a popup window appears to ask user whether to open a new window
or not. However, when this popup window is closed, the focus goes to url
bar, which in turn opens IME keyboard.

This patch fixes it by forcibly giving focus to webview inside two callbacks
(correspond to open/cancel button) that close the popup window.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=11530
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I74f2f15c1c4ab5620880a8d15fcad303e1d53515
Signed-off-by: hyunjune.kim <hyunjune.kim@samsung.com>
tizen_src/ewk/efl_webview_app/mini_browser.c

index c6ed457..25650cf 100755 (executable)
@@ -885,12 +885,14 @@ void __popup_open_url_cb(void *data, Evas_Object *obj, void *event_info)
   app_data* ad = (app_data*)data;
   ewk_view_url_set(ad->webview, ad->popup_url);
   __popup_close(ad);
+  evas_object_focus_set(ad->webview, EINA_TRUE);
 }
 
 void __popup_cancel_url_cb(void *data, Evas_Object *obj, void *event_info)
 {
   app_data* ad = (app_data*)data;
   __popup_close(ad);
+  evas_object_focus_set(ad->webview, EINA_TRUE);
 }
 
 void __policy_newwindow_decide_cb(void *data, Evas_Object *obj, void *event_info)