1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26:34 +01:00

NavigationBar: Focus webview when navigating back/forward

BUG: 393834
FIXED-IN: 3.0.1
This commit is contained in:
David Rosca 2018-05-08 11:35:39 +02:00
parent 6e3da02d7d
commit 4454ac714c
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -628,8 +628,9 @@ void NavigationBar::reload()
void NavigationBar::goBack()
{
QWebEngineHistory* history = m_window->weView()->page()->history();
history->back();
auto view = m_window->weView();
view->setFocus();
view->back();
}
void NavigationBar::goBackInNewTab()
@ -645,8 +646,9 @@ void NavigationBar::goBackInNewTab()
void NavigationBar::goForward()
{
QWebEngineHistory* history = m_window->weView()->page()->history();
history->forward();
auto view = m_window->weView();
view->setFocus();
view->forward();
}
void NavigationBar::goForwardInNewTab()