Set focus on webview before processing click

This commit is contained in:
Florian Bruhin 2014-04-21 17:23:22 +02:00
parent ee8ba55676
commit 20dd33fb7a

View File

@ -190,6 +190,7 @@ class BrowserTab(QWebView):
@pyqtSlot('QMouseEvent')
def on_mouse_event(self, evt):
"""Post a new mouseevent from a hintmanager."""
self.setFocus()
QApplication.postEvent(self, evt)
def _on_destroyed(self, sender):