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>
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)