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()
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user