E-book viewer: Read aloud: Allow right clicking to play/pause reading. Fixes #1946439 [[Enhancement - E-book viewer] Right mouse click to pause/play Read aloud](https://bugs.launchpad.net/calibre/+bug/1946439)

This commit is contained in:
Kovid Goyal 2021-10-21 19:55:20 +05:30
parent dd4da79f8f
commit 88cf8ff2bb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -46,6 +46,7 @@ class ReadAloud:
))
container.addEventListener('keydown', self.on_keydown, {'passive': False})
container.addEventListener('click', self.container_clicked, {'passive': False})
container.addEventListener('contextmenu', self.toggle, {'passive': False})
@property
def container(self):