Fix keypad of previous tap issue
authorSangYong Park <sy302.park@samsung.com>
Fri, 10 May 2013 02:27:25 +0000 (11:27 +0900)
committerSangYong Park <sy302.park@samsung.com>
Thu, 27 Jun 2013 08:48:15 +0000 (17:48 +0900)
[Title] Fix keypad of previous tap issue
[Issue#] P130508-5405
[Problem] Keypad was opened when new tap was created.
[Cause] Web page of previous tap focus to edit field.
[Solution] Do not focus if ewkview has not visibility.

Change-Id: I47515a7a9c884e58f8e323bcaaa841a537caf086

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/WebPageProxy.cpp

index 85223e2..8fd0b06 100644 (file)
@@ -4156,7 +4156,7 @@ void ewk_view_touch_event_handler_result_set(Evas_Object* ewkView, WebKit::WebEv
             impl->gestureClient->setTapEnabled(!wasHandled);
         }
 #if ENABLE(TIZEN_ISF_PORT)
-        else {
+        else if (impl->pageProxy->isViewVisible()) {
             IntPoint pointForHitTest = impl->transformFromScene().mapPoint(IntPoint(impl->touchDownPoint.x, impl->touchDownPoint.y));
             WebHitTestResult::Data hitTestResultData = impl->pageProxy->hitTestResultAtPoint(pointForHitTest);
             if (hitTestResultData.isContentEditable && impl->inputMethodContext()) {
index c5becb1..e599145 100755 (executable)
@@ -3808,7 +3808,7 @@ void WebPageProxy::didReceiveEvent(uint32_t opaqueType, bool handled)
         m_pageClient->doneWithGestureEvent(event, handled);
 #endif
 #if ENABLE(TIZEN_ISF_PORT)
-        if (type == WebEvent::GestureSingleTap)
+        if (m_isVisible && type == WebEvent::GestureSingleTap)
             evas_object_focus_set(viewWidget(), true);
 #endif
         break;