Fix Esc key not working on a couple of panels

See #1849958 ([Enhancement] Go back by clicking Esc on server)
This commit is contained in:
Kovid Goyal 2020-12-16 10:11:08 +05:30
parent 762f1b659a
commit ff87e15bbb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -413,6 +413,7 @@ def create_vl_panel(container_id):
items.push(create_item(name, subtitle=vls[name], action=show_vl.bind(None, name, True)))
container.appendChild(E.div())
create_item_list(container.lastChild, items, _('Choose a Virtual library to browse from the list below'))
enable_escape_key(container, back)
def show_vl(vl_name, replace):
@ -445,6 +446,7 @@ def create_mode_panel(container_id):
ci(_('Custom list'), CUSTOM_LIST_DESCRIPTION(), 'custom_list')
container.appendChild(E.div())
create_item_list(container.lastChild, items, _('Choose a display mode for the list of books from below'))
enable_escape_key(container, back)
# }}}