From 88cf8ff2bb69de84adf65b146761be11f504def7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 Oct 2021 19:55:20 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/read_aloud.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/read_aloud.pyj b/src/pyj/read_book/read_aloud.pyj index 8f53b206d9..1145817da9 100644 --- a/src/pyj/read_book/read_aloud.pyj +++ b/src/pyj/read_book/read_aloud.pyj @@ -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):