From c65edbc4dd821bc712edd22467b9d9c04a4c99f8 Mon Sep 17 00:00:00 2001 From: Tomas Ã…kesson Date: Tue, 4 Apr 2023 19:23:59 +0200 Subject: Focus browsing area after page is loaded This change allows the user to start scrolling with the keyboard instantly, without having to focus the browsing area first, after a page has loaded. This happens for example when opening a new tab, and when entering an address manually. --- src/browsertab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 1a1e9ba..237aeff 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -214,6 +214,8 @@ void BrowserTab::navigateTo(const QUrl &url, PushToHistory mode, RequestFlags fl } this->updateUI(); + + this->ui->text_browser->setFocus(); } void BrowserTab::navigateBack(const QModelIndex &history_index) -- cgit v1.2.3