mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Right clicking in controls should not close preferences
This commit is contained in:
parent
3d61813461
commit
140bd0166f
@ -495,6 +495,8 @@ class Overlay:
|
|||||||
self.panels = []
|
self.panels = []
|
||||||
|
|
||||||
def oncontextmenu(self, evt):
|
def oncontextmenu(self, evt):
|
||||||
|
if evt.target and evt.target.tagName and evt.target.tagName.toLowerCase() in ('input', 'textarea'):
|
||||||
|
return
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
self.handle_escape()
|
self.handle_escape()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user