Focus webview when performing highlight action

This commit is contained in:
Kovid Goyal 2020-07-13 11:54:14 +05:30
parent 3aeeca3cd8
commit 90f664e645
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -686,6 +686,7 @@ class WebView(RestartingWebEngineView):
def highlight_action(self, uuid, which): def highlight_action(self, uuid, which):
self.execute_when_ready('highlight_action', uuid, which) self.execute_when_ready('highlight_action', uuid, which)
self.setFocus(Qt.OtherFocusReason)
def contextMenuEvent(self, ev): def contextMenuEvent(self, ev):
ev.accept() ev.accept()