From 1aeef04ab3d4f575b5a848dfae59c2ff44afdc81 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Apr 2021 21:32:32 +0530 Subject: [PATCH] E-book viewer: Fix navigation shortcuts not working in Read aloud mode --- src/pyj/read_book/iframe.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index d7529c38dd..d92696f9d4 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -969,6 +969,8 @@ class IframeBoss: sel = window.getSelection() sel.removeAllRanges() self.send_message('tts', type='text-extracted', marked_text=marked_text, pos=data.pos) + elif data.type is 'trigger-shortcut': + self.on_handle_navigation_shortcut(data) def mark_word_being_spoken(self, occurrence_number): self.last_search_at = window.performance.now()