From 9d4e5c500ff262abb88b047572345dd85eb89c98 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Jun 2021 08:06:05 +0530 Subject: [PATCH] Fix #1930965 [[Enhancement - Server] Clicking Esc to go back to the book details page doesn't work after clicking on some metadata field in the Edit metadata page and going back to the Edit metadata page](https://bugs.launchpad.net/calibre/+bug/1930965) --- src/pyj/book_list/edit_metadata.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/book_list/edit_metadata.pyj b/src/pyj/book_list/edit_metadata.pyj index 4059e3a512..2817138a45 100644 --- a/src/pyj/book_list/edit_metadata.pyj +++ b/src/pyj/book_list/edit_metadata.pyj @@ -1001,6 +1001,7 @@ def on_close(container_id): clear(d), clear(d.previousSibling) q = parse_url_params() show_book(container_id, int(q.book_id)) + c.querySelector(f'.{CLASS_NAME}').focus() return cq = get_current_query() if cq.from_read_book: