summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/manual/widgets/inputmethods/webview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/widgets/inputmethods/webview.cpp b/tests/manual/widgets/inputmethods/webview.cpp
index ac5dadce1..62e210ecf 100644
--- a/tests/manual/widgets/inputmethods/webview.cpp
+++ b/tests/manual/widgets/inputmethods/webview.cpp
@@ -27,6 +27,7 @@
****************************************************************************/
#include "webview.h"
+#include <QWebEngineSettings>
WebView::WebView(QWidget *parent)
: QWebEngineView(parent)
@@ -46,5 +47,6 @@ WebView::WebView(QWidget *parent)
" <input type='text' id='input1' />"
"</body></html>");
+ settings()->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, true);
setHtml(html);
}