This commit is contained in:
Florian Bruhin 2016-09-11 20:16:03 +02:00
parent 8eeb3b9c75
commit 1b5cd98d38
2 changed files with 3 additions and 1 deletions

View File

@ -216,7 +216,8 @@ class WebEngineScroller(browsertab.AbstractScroller):
# FIXME:qtwebengine Abort scrolling if the minimum/maximum was reached.
for _ in range(count):
press_evt = QKeyEvent(QEvent.KeyPress, key, Qt.NoModifier, 0, 0, 0)
release_evt = QKeyEvent(QEvent.KeyRelease, key, Qt.NoModifier, 0, 0, 0)
release_evt = QKeyEvent(QEvent.KeyRelease, key, Qt.NoModifier,
0, 0, 0)
self._tab.send_event(press_evt)
self._tab.send_event(release_evt)

View File

@ -81,6 +81,7 @@ def whitelist_generator():
yield 'qutebrowser.utils.jinja.Loader.get_source'
yield 'qutebrowser.utils.log.QtWarningFilter.filter'
yield 'qutebrowser.browser.pdfjs.is_available'
yield 'QEvent.posted'
# vulture doesn't notice the hasattr() and thus thinks netrc_used is unused
# in NetworkManager.on_authentication_required
yield 'PyQt5.QtNetwork.QNetworkReply.netrc_used'