summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_view_qt.cpp
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2014-01-31 17:24:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-10 21:36:04 +0100
commit331b7fa11c84107e3300b14ece5fc5991cfc35e9 (patch)
tree6f47e11a32de6ef190667d0c12d92f9649e16b03 /src/core/web_contents_view_qt.cpp
parent28acdd2ad14d3a5fecc51b5b4bc9d05b6f80dbb5 (diff)
Add TakeFocus in WebContentsViewQt for passing on tab focus.
Chromium calls RenderViewHostDelegate::TakeFocus when the last focusable item within the page was reached. We then have to move the focus on to the next/previous QQuickItem. Change-Id: Id0128053602ff1220c1bced1b218050b66fef659 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/web_contents_view_qt.cpp')
-rw-r--r--src/core/web_contents_view_qt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/web_contents_view_qt.cpp b/src/core/web_contents_view_qt.cpp
index 65b8e5f3a..a4cb3556e 100644
--- a/src/core/web_contents_view_qt.cpp
+++ b/src/core/web_contents_view_qt.cpp
@@ -130,3 +130,8 @@ void WebContentsViewQt::ShowContextMenu(const content::ContextMenuParams &params
WebEngineContextMenuData contextMenuData(fromParams(params));
m_client->contextMenuRequested(contextMenuData);
}
+
+void WebContentsViewQt::TakeFocus(bool reverse)
+{
+ m_client->passOnFocus(reverse);
+}