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.
This commit is contained in:
Tomas Åkesson 2023-04-04 19:23:59 +02:00 committed by Felix Queißner
parent d47e3d3f54
commit c65edbc4dd
1 changed files with 2 additions and 0 deletions

View File

@ -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)