Fix keyboard shortcuts not working after closing footnote popup

This commit is contained in:
Kovid Goyal 2019-10-16 07:14:31 +05:30
parent 04d3066594
commit 667d4586fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -7,7 +7,7 @@ from gettext import gettext as _
from dom import add_extra_css, build_rule, clear, svgicon
from iframe_comm import IframeWrapper
from read_book.globals import runtime
from read_book.globals import runtime, ui_operations
from read_book.resources import load_resources
CLASS_NAME = 'book-content-popup-container'
@ -80,6 +80,7 @@ class ContentPopupOverlay:
def hide(self):
self.container.style.display = 'none'
ui_operations.focus_iframe()
def show(self):
c = self.container