Skip to content

Commit

Permalink
fix(browser): prevent WebEngine taking away focus from searchbox (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
xaizek committed Dec 25, 2021
1 parent 7bd8598 commit 763edca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/browser/webview.cpp
Expand Up @@ -40,6 +40,7 @@
#include <QVector>
#include <QWebEngineContextMenuData>
#include <QWebEngineProfile>
#include <QWebEngineSettings>
#include <QWheelEvent>

using namespace Zeal::Browser;
Expand All @@ -50,6 +51,8 @@ WebView::WebView(QWidget *parent)
setPage(new WebPage(this));
setZoomLevel(defaultZoomLevel());

settings()->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, false);

QApplication::instance()->installEventFilter(this);
}

Expand Down

0 comments on commit 763edca

Please sign in to comment.