mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Move focus off search input when handling return
This commit is contained in:
parent
6dec545167
commit
396219e539
@ -39,6 +39,7 @@ class SearchPanel:
|
|||||||
))
|
))
|
||||||
search_container.firstChild.firstChild.addEventListener('keypress', def(event):
|
search_container.firstChild.firstChild.addEventListener('keypress', def(event):
|
||||||
if event.keyCode == 13:
|
if event.keyCode == 13:
|
||||||
|
self.container.querySelector('button').focus()
|
||||||
self.execute_search()
|
self.execute_search()
|
||||||
event.preventDefault(), event.stopPropagation()
|
event.preventDefault(), event.stopPropagation()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user