Skip to content

Commit

Permalink
Viewer: Right clicking in controls should not close preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Dec 22, 2019
1 parent 3d61813 commit 140bd01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pyj/read_book/overlay.pyj
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 140bd01

Please sign in to comment.