From 140bd0166f1c81024920424183a23387b09eb701 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 22 Dec 2019 15:24:20 +0530 Subject: [PATCH] Viewer: Right clicking in controls should not close preferences --- src/pyj/read_book/overlay.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index a99a86828e..54e27ace36 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()