When displaying book, ensure the iframe has focus

This commit is contained in:
Kovid Goyal 2019-08-01 09:09:53 +05:30
parent 85b8ee0130
commit 2eefa97a1d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()