mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:24:20 +02:00
When displaying book, ensure the iframe has focus
This commit is contained in:
parent
85b8ee0130
commit
2eefa97a1d
1 changed files with 1 additions and 0 deletions
|
|
@ -369,6 +369,7 @@ def parse_cfi(self, encoded_cfi, book):
|
|||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue