From 2eefa97a1df9e1255303353ae8170d244c667c69 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Aug 2019 09:09:53 +0530 Subject: [PATCH] When displaying book, ensure the iframe has focus --- src/pyj/read_book/view.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 2b7cfbd3f1..b7f3242f8b 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -369,6 +369,7 @@ class View: def display_book(self, book): self.hide_overlays() + self.iframe.focus() is_current_book = self.book and self.book.key == book.key if not is_current_book: self.iframe_wrapper.reset()