From aefc3eba389c444a69e801c21fa1f19847191b47 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 19 Jul 2017 13:06:25 +0200 Subject: [PATCH] Disable QWebEngineSettings::FocusOnNavigationEnabled Keeping this enabled will focus views loaded in background tabs. Closes #2352 --- src/lib/app/mainapplication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 7de0e8754..7b1279c8c 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -912,6 +912,7 @@ void MainApplication::loadSettings() webSettings->setAttribute(QWebEngineSettings::HyperlinkAuditingEnabled, false); webSettings->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, true); webSettings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true); + webSettings->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, false); webSettings->setDefaultTextEncoding(settings.value("DefaultEncoding", webSettings->defaultTextEncoding()).toString());