From 8d2dac20ff65b31acfd0cabefaeae81d520aceac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Sep 2025 12:02:59 +0530 Subject: [PATCH] E-book viewer: Prevent right click from showing browser context menu in the footnote popup panel --- src/pyj/read_book/footnotes.pyj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyj/read_book/footnotes.pyj b/src/pyj/read_book/footnotes.pyj index 968d0c2e23..aff2174327 100644 --- a/src/pyj/read_book/footnotes.pyj +++ b/src/pyj/read_book/footnotes.pyj @@ -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