mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -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):
|
||||
self.execute_when_ready('highlight_action', uuid, which)
|
||||
self.setFocus(Qt.OtherFocusReason)
|
||||
|
||||
def contextMenuEvent(self, ev):
|
||||
ev.accept()
|
||||
|
Loading…
x
Reference in New Issue
Block a user