1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36: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() void NavigationBar::goBack()
{ {
QWebEngineHistory* history = m_window->weView()->page()->history(); auto view = m_window->weView();
history->back(); view->setFocus();
view->back();
} }
void NavigationBar::goBackInNewTab() void NavigationBar::goBackInNewTab()
@ -645,8 +646,9 @@ void NavigationBar::goBackInNewTab()
void NavigationBar::goForward() void NavigationBar::goForward()
{ {
QWebEngineHistory* history = m_window->weView()->page()->history(); auto view = m_window->weView();
history->forward(); view->setFocus();
view->forward();
} }
void NavigationBar::goForwardInNewTab() void NavigationBar::goForwardInNewTab()