Change condition for focusing to ewk view.
authorSangYong Park <sy302.park@samsung.com>
Fri, 28 Jun 2013 02:35:05 +0000 (11:35 +0900)
committerSangYong Park <sy302.park@samsung.com>
Fri, 28 Jun 2013 02:35:05 +0000 (11:35 +0900)
[Title] Change condition for focusing to ewk view.
[Issue#] N/A
[Problem] Do not create input picker.
[Cause] Ewk view has not focus when tap input element for input picker.
[Solution] Change condition for focusing to ewk view.

Change-Id: Idfe7bca6953202627fb22b09f3b955b448cd3c9e

Source/WebKit2/UIProcess/WebPageProxy.cpp
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.h

index 74417a1..25853dd 100755 (executable)
@@ -3808,11 +3808,8 @@ 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) {
-            InputMethodContextEfl* inputMethodContext = static_cast<PageClientImpl*>(m_pageClient)->viewImpl()->inputMethodContext();
-            if (inputMethodContext && inputMethodContext->hasContext())
-                evas_object_focus_set(viewWidget(), true);
-        }
+        if (m_isVisible && type == WebEvent::GestureSingleTap && m_editorState.isContentEditable)
+            evas_object_focus_set(viewWidget(), true);
 #endif
         break;
     }
index 5a6088e..f69ca99 100755 (executable)
@@ -54,7 +54,6 @@ public:
 
 #if ENABLE(TIZEN_ISF_PORT)
     bool isShow();
-    bool hasContext() { return m_context; }
     Ecore_IMF_Autocapital_Type autoCapitalType();
     void onFocusIn();
     void onFocusOut();