mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fixed, accesskeys don't hide when page is scrolled without mouse wheel.
This commit is contained in:
parent
59824f2bff
commit
413e61e9b6
@ -294,6 +294,10 @@ void AKN_Handler::showAccessKeys()
|
||||
if (m_accessKeysVisible) {
|
||||
m_view.data()->installEventFilter(this);
|
||||
connect(m_view.data(), SIGNAL(loadStarted()), this, SLOT(hideAccessKeys()));
|
||||
connect(m_view.data()->page(), SIGNAL(scrollRequested(int,int,QRect)), this, SLOT(hideAccessKeys()));
|
||||
#if QT_VERSION > 0x040800
|
||||
connect(m_view.data()->page(), SIGNAL(viewportChangeRequested()), this, SLOT(hideAccessKeys()));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -312,6 +316,10 @@ void AKN_Handler::hideAccessKeys()
|
||||
// Uninstall event filter and disconnect loadStarted
|
||||
m_view.data()->removeEventFilter(this);
|
||||
disconnect(m_view.data(), SIGNAL(loadStarted()), this, SLOT(hideAccessKeys()));
|
||||
disconnect(m_view.data()->page(), SIGNAL(scrollRequested(int,int,QRect)), this, SLOT(hideAccessKeys()));
|
||||
#if QT_VERSION > 0x040800
|
||||
disconnect(m_view.data()->page(), SIGNAL(viewportChangeRequested()), this, SLOT(hideAccessKeys()));
|
||||
#endif
|
||||
}
|
||||
|
||||
m_accessKeysVisible = false;
|
||||
|
Loading…
Reference in New Issue
Block a user