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:
parent
6e3da02d7d
commit
4454ac714c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user