diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-31 13:33:38 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-09-03 15:21:53 +0000 |
commit | b5c9226856330772b239f4ca91fc252a55d0d83a (patch) | |
tree | 7624112f2bd23bfaa51abe5583d2fbcac795fcdf /src/core/web_contents_adapter.cpp | |
parent | d85a349f4136554cfaa5349303270ad37b121941 (diff) |
Fix selectAll on data url
SelectAll only works when there is a focused frame, so we must ensure
a frame is focused when the web-contents requests focus.
Change-Id: I00d670321b29342fcd447b4b07251df776019f1c
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index ab4a02836..6fb2f5c97 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -484,6 +484,7 @@ void WebContentsAdapter::setContent(const QByteArray &data, const QString &mimeT params.can_load_local_resources = true; params.transition_type = ui::PageTransitionFromInt(ui::PAGE_TRANSITION_TYPED | ui::PAGE_TRANSITION_FROM_API); d->webContents->GetController().LoadURLWithParams(params); + d->webContents->Focus(); } QUrl WebContentsAdapter::activeUrl() const |