From ff87e15bbb2216e3cb22770cc7ba4cb65796e8de Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Dec 2020 10:11:08 +0530 Subject: [PATCH] Fix Esc key not working on a couple of panels See #1849958 ([Enhancement] Go back by clicking Esc on server) --- src/pyj/book_list/views.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/book_list/views.pyj b/src/pyj/book_list/views.pyj index f0f52b24cd..1c9b84a3b3 100644 --- a/src/pyj/book_list/views.pyj +++ b/src/pyj/book_list/views.pyj @@ -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) # }}}