mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-02-23 19:50:06 -05:00
E-book viewer: Prevent right click from showing browser context menu in the footnote popup panel
This commit is contained in:
parent
40f5df12cf
commit
8d2dac20ff
@ -204,6 +204,9 @@ class PopupIframeBoss:
|
||||
|
||||
def initialize(self, data):
|
||||
window.addEventListener('error', self.on_error)
|
||||
document.addEventListener('contextmenu', def(ev):
|
||||
ev.preventDefault()
|
||||
)
|
||||
|
||||
def on_error(self, evt):
|
||||
msg = evt.message
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user