Description
After https://codereview.qt-project.org/#/c/221408/ (cc juri.valdmann) I'm seeing some issues with keyboard focus not going to the page when it should.
I'm seeing it in various scenarios, here's one way to reproduce it:
With this simple code:
#include <QApplication> #include <QWebEngineView> #include <QUrl> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebEngineView view; view.load(QUrl(argv[1])); view.show(); return app.exec(); }
QT += core widgets webenginewidgets TARGET = testbrowser TEMPLATE = app SOURCES += main.cpp
When doing ./testbrowser https://ddg.gg, I see the keyboard focus on the search field (blinking cursor), but the keyboard input goes nowhere.
Some observations:
- With simplebrowser, the keyboard focus doesn't show up on that input at all.
- When setting FocusOnNavigationEnabled it doesn't happen (but that has other drawbacks).
- Before that change, it doesn't happen.
- When loading https://duckduckgo.com/ directly, it doesn't seem to happen.
I'm seeing it in other situations as well, but this is probably the easiest one to reproduce.
Attachments
Issue Links
- relates to
-
QTBUG-68224 QWebEngineView setUrl()/load() methods in some case divide page in two parts
- Closed
For Gerrit Dashboard: QTBUG-68076 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
229367,4 | Fix keyboard focus for speculative RenderFrameHosts | 5.11 | qt/qtwebengine | Status: MERGED | +2 | 0 |