[BlackBerry] Enable Input Focus when handling touch events for JS
authormifenton@rim.com <mifenton@rim.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2013 20:43:39 +0000 (20:43 +0000)
committermifenton@rim.com <mifenton@rim.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2013 20:43:39 +0000 (20:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=106109

Reviewed by Yong Li.

PR 273325.

Toggle input mode active when a touch event is
received for JS processing to ensure state
is updated even when event is consumed.

Reviewed Internally by Gen Mak.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::touchEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@138837 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/blackberry/Api/WebPage.cpp
Source/WebKit/blackberry/ChangeLog

index 5bfa933..218ecc1 100644 (file)
@@ -4039,6 +4039,9 @@ bool WebPage::touchEvent(const Platform::TouchEvent& event)
     if (d->m_page->defersLoading())
         return false;
 
+    if (d->m_inputHandler)
+        d->m_inputHandler->setInputModeEnabled();
+
     PluginView* pluginView = d->m_fullScreenPluginView.get();
     if (pluginView)
         return d->dispatchTouchEventToFullScreenPlugin(pluginView, event);
index 2121108..2f46d7f 100644 (file)
@@ -1,3 +1,21 @@
+2013-01-04  Mike Fenton  <mifenton@rim.com>
+
+        [BlackBerry] Enable Input Focus when handling touch events for JS
+        https://bugs.webkit.org/show_bug.cgi?id=106109
+
+        Reviewed by Yong Li.
+
+        PR 273325.
+
+        Toggle input mode active when a touch event is
+        received for JS processing to ensure state
+        is updated even when event is consumed.
+
+        Reviewed Internally by Gen Mak.
+
+        * Api/WebPage.cpp:
+        (BlackBerry::WebKit::WebPage::touchEvent):
+
 2013-01-04  Adam Klein  <adamk@chromium.org>
 
         Remove ENABLE_MUTATION_OBSERVERS #define