Do not focus when opening Picker Popup
authorTaeyun An <ty.an@samsung.com>
Tue, 2 Jul 2013 08:39:58 +0000 (17:39 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 2 Jul 2013 09:55:26 +0000 (09:55 +0000)
[Title] Do not focus when opening Picker Popup
[Issue#] N_SE-42734, N_SE-43124
[Problem] even thogh picker popup is displayed, the text is inserted
          to webview using host keyboard
[Cause] key callback is called because webview has focus.
[Solution] do not focus when opening Picker Popup

Change-Id: I22248cda47ac56acae05d3bfb1ddea3f8b10e67f

Source/WebKit2/UIProcess/WebPageProxy.cpp

index 25853dd..2a72652 100755 (executable)
@@ -3808,8 +3808,18 @@ void WebPageProxy::didReceiveEvent(uint32_t opaqueType, bool handled)
         m_pageClient->doneWithGestureEvent(event, handled);
 #endif
 #if ENABLE(TIZEN_ISF_PORT)
-        if (m_isVisible && type == WebEvent::GestureSingleTap && m_editorState.isContentEditable)
+        if (m_isVisible && type == WebEvent::GestureSingleTap && m_editorState.isContentEditable) {
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+            if (m_editorState.inputMethodHints == "date"
+                || m_editorState.inputMethodHints == "datetime"
+                || m_editorState.inputMethodHints == "datetime-local"
+                || m_editorState.inputMethodHints == "month"
+                || m_editorState.inputMethodHints == "time"
+                || m_editorState.inputMethodHints == "week")
+                break;
+#endif
             evas_object_focus_set(viewWidget(), true);
+        }
 #endif
         break;
     }