From 53649d9cf33a6c0527fd201943b952aa0cdf76a5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Jun 2016 08:00:03 +0530 Subject: [PATCH] ... --- src/pyj/book_list/search.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/book_list/search.pyj b/src/pyj/book_list/search.pyj index a148094f7c..31c23364c9 100644 --- a/src/pyj/book_list/search.pyj +++ b/src/pyj/book_list/search.pyj @@ -52,7 +52,7 @@ class SearchPanel: type='search', autosave='search-for-books-in-main-calibre-booklist', name='search-books', autocomplete='on', inputmode='latin', title=_('Search for books'), placeholder=_('Enter the search query'), spellcheck='false', - style="flex-grow: 10; padding: {} 0.5em; margin-right: 0.5em".format(BUTTON_VPADDING), onkeypress=self.on_input_keypress.bind(self), + style="flex-grow: 10; padding: {} 0.5em; margin-right: 0.5em".format(BUTTON_VPADDING), onkeydown=self.on_input_keydown.bind(self), ), search_button )) @@ -71,7 +71,7 @@ class SearchPanel: self.node_id_map = {} self.active_nodes = {} - def on_input_keypress(self, event): + def on_input_keydown(self, event): if event.keyCode is 13: # Enter event.preventDefault(), event.stopPropagation() event.target.nextSibling.focus()