Set focus on webview before processing click
This commit is contained in:
parent
ee8ba55676
commit
20dd33fb7a
@ -190,6 +190,7 @@ class BrowserTab(QWebView):
|
|||||||
@pyqtSlot('QMouseEvent')
|
@pyqtSlot('QMouseEvent')
|
||||||
def on_mouse_event(self, evt):
|
def on_mouse_event(self, evt):
|
||||||
"""Post a new mouseevent from a hintmanager."""
|
"""Post a new mouseevent from a hintmanager."""
|
||||||
|
self.setFocus()
|
||||||
QApplication.postEvent(self, evt)
|
QApplication.postEvent(self, evt)
|
||||||
|
|
||||||
def _on_destroyed(self, sender):
|
def _on_destroyed(self, sender):
|
||||||
|
Loading…
Reference in New Issue
Block a user