Move focus off search input when handling return

This commit is contained in:
Kovid Goyal 2015-12-20 15:43:46 +05:30
parent 6dec545167
commit 396219e539

View File

@ -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()
)