mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Focus webview when performing highlight action
This commit is contained in:
parent
3aeeca3cd8
commit
90f664e645
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user