Do not set the focus to webview when showing picker popup
authorTaeyun An <ty.an@samsung.com>
Mon, 15 Jul 2013 11:01:16 +0000 (20:01 +0900)
committerTaeyun An <ty.an@samsung.com>
Mon, 15 Jul 2013 11:01:16 +0000 (20:01 +0900)
[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

index 2997efa..b6f0293 100755 (executable)
@@ -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