From 3348721d1fc840315dda220f1c8bb55454623daf Mon Sep 17 00:00:00 2001 From: Taeyun An Date: Mon, 15 Jul 2013 20:01:16 +0900 Subject: [PATCH] Do not set the focus to webview when showing picker popup [Title] Do not focus webview when showing picker popup [Issue#] N_SE-46208, N_SE-46206 [Problem] some text can be inserted using host keyboard while displaying picker popup [Cause] key event for webview is called because webview has the focus when showing picker [Solution] Do not set the focus when showing picker Change-Id: I0755137f58563484ed9ba0c02d6b1531baad9cd8 --- Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp b/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp index 2997efa..b6f0293 100755 --- a/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp +++ b/Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp @@ -380,6 +380,17 @@ void InputMethodContextEfl::updateTextInputStateByUserAction(bool setFocus) if (editor.isContentEditable) { showIMFContext(editor, true); +#if ENABLE(TIZEN_INPUT_TAG_EXTENSION) + if (editor.inputMethodHints == "date" + || editor.inputMethodHints == "datetime" + || editor.inputMethodHints == "datetime-local" + || editor.inputMethodHints == "month" + || editor.inputMethodHints == "time" + || editor.inputMethodHints == "week") { + if (m_inputPickerType == -1) + return; + } +#endif if (setFocus) evas_object_focus_set(m_viewImpl->view(), true); } else -- 2.7.4