diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-21 11:19:09 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-21 11:53:14 +0000 |
commit | c8d11a21c648e87f3560042e1c022f031a6e6519 (patch) | |
tree | d8885fb28dd423258abc4eeadbdd7157c7b5c6c5 /src/webenginewidgets/api/qwebenginepage.cpp | |
parent | 01c763c83d0c846164dcb5b69b9343e6ee2ac0b7 (diff) | |
download | qtwebengine-c8d11a21c648e87f3560042e1c022f031a6e6519.tar.gz |
Fixup focus implementation
Follow the other implementation and pass TakeFocus to WebContents
Delegate, and hook to our UI from there. Also fixes use of Blur instead
of LostFocus, which means we now render unfocused more correctly.
Change-Id: I34a1882489bc68b9ff36ed5139af0ee8a3a95b79
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.cpp')
-rw-r--r-- | src/webenginewidgets/api/qwebenginepage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.cpp b/src/webenginewidgets/api/qwebenginepage.cpp index fae34ae8d..63863ab34 100644 --- a/src/webenginewidgets/api/qwebenginepage.cpp +++ b/src/webenginewidgets/api/qwebenginepage.cpp @@ -522,10 +522,11 @@ void QWebEnginePagePrivate::didPrintPage(quint64 requestId, const QByteArray &re #endif } -void QWebEnginePagePrivate::passOnFocus(bool reverse) +bool QWebEnginePagePrivate::passOnFocus(bool reverse) { if (view) - view->focusNextPrevChild(!reverse); + return view->focusNextPrevChild(!reverse); + return false; } void QWebEnginePagePrivate::authenticationRequired(QSharedPointer<AuthenticationDialogController> controller) |