From 396219e53908c269005f948439a7bc06a174c6d7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Dec 2015 15:43:46 +0530 Subject: [PATCH] Move focus off search input when handling return --- src/pyj/book_list/search.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/book_list/search.pyj b/src/pyj/book_list/search.pyj index f867bd484c..d1acc41392 100644 --- a/src/pyj/book_list/search.pyj +++ b/src/pyj/book_list/search.pyj @@ -39,6 +39,7 @@ class SearchPanel: )) search_container.firstChild.firstChild.addEventListener('keypress', def(event): if event.keyCode == 13: + self.container.querySelector('button').focus() self.execute_search() event.preventDefault(), event.stopPropagation() )