From 9d0c7def381f7f76e75e58fd63e4e2419c94408c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 May 2021 15:26:20 +0530 Subject: [PATCH] when showing results focus the results container --- src/pyj/read_book/search.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/search.pyj b/src/pyj/read_book/search.pyj index f07c9d1d4e..3c80010b8f 100644 --- a/src/pyj/read_book/search.pyj +++ b/src/pyj/read_book/search.pyj @@ -113,7 +113,7 @@ class SearchOverlay: c.appendChild(E.hr()) c.appendChild(E.div( - style='display: none; overflow: auto', + style='display: none; overflow: auto', tabindex='0', E.div( style='text-align: center', E.div(create_spinner('4em', '4em')), @@ -160,6 +160,7 @@ class SearchOverlay: c.style.display = 'block' c.firstChild.style.display = 'none' c.lastChild.style.display = 'block' + c.focus() def clear_results(self): clear(self.results_container)