mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Preview panel: Add a copy selected text action to the context menu
This commit is contained in:
parent
a0d19d2f40
commit
5c2dec8022
@ -416,6 +416,9 @@ class WebView(QWebView):
|
||||
|
||||
def contextMenuEvent(self, ev):
|
||||
menu = QMenu(self)
|
||||
ca = self.pageAction(QWebPage.Copy)
|
||||
if ca.isEnabled():
|
||||
menu.addAction(ca)
|
||||
menu.addAction(actions['reload-preview'])
|
||||
menu.addAction(QIcon(I('debug.png')), _('Inspect element'), self.inspect)
|
||||
menu.exec_(ev.globalPos())
|
||||
|
Loading…
x
Reference in New Issue
Block a user