Viewer: Right clicking in controls should not close preferences

This commit is contained in:
Kovid Goyal 2019-12-22 15:24:20 +05:30
parent 3d61813461
commit 140bd0166f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()