diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index a99a86828e83..54e27ace3642 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -495,6 +495,8 @@ class Overlay: self.panels = [] def oncontextmenu(self, evt): + if evt.target and evt.target.tagName and evt.target.tagName.toLowerCase() in ('input', 'textarea'): + return evt.preventDefault() self.handle_escape()