summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@theqtcompany.com>2014-12-04 18:04:08 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2014-12-08 16:27:38 +0100
commit8eefc3a0658d1b10de12f43534cfd63af825ebc8 (patch)
tree3538e3d12042e90ac66631ed97c61c2b9f025935
parent5c3bfe0e4ddea18c0d44b26cc3b950f9dbf9349f (diff)
Force active focus for touch begin
This fixes the focusing issues on touch devices. Change-Id: I26c0080ea70aeabbd608e15fbd3705b907bdb68e Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-rw-r--r--src/webengine/render_widget_host_view_qt_delegate_quick.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webengine/render_widget_host_view_qt_delegate_quick.cpp b/src/webengine/render_widget_host_view_qt_delegate_quick.cpp
index a2f60d4e..7c04cb8c 100644
--- a/src/webengine/render_widget_host_view_qt_delegate_quick.cpp
+++ b/src/webengine/render_widget_host_view_qt_delegate_quick.cpp
@@ -192,6 +192,8 @@ void RenderWidgetHostViewQtDelegateQuick::wheelEvent(QWheelEvent *event)
void RenderWidgetHostViewQtDelegateQuick::touchEvent(QTouchEvent *event)
{
+ if (event->type() == QEvent::TouchBegin && !m_isPopup)
+ forceActiveFocus();
m_client->forwardEvent(event);
}