aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
authorTomas Åkesson <tomas@entropic.se>2023-04-04 19:23:59 +0200
committerFelix Queißner <felix@ib-queissner.de>2023-04-06 20:55:47 +0200
commitc65edbc4dd821bc712edd22467b9d9c04a4c99f8 (patch)
treef5f42a211e5b23aada97a76fc4bec913279fb2d5 /src/browsertab.cpp
parentd47e3d3f54aa66b37f8a1bb45150b8510c95c343 (diff)
downloadkristall-c65edbc4dd821bc712edd22467b9d9c04a4c99f8.tar.gz
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.
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp2
1 files changed, 2 insertions, 0 deletions
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)