@@ -15,7 +15,6 @@ class app.views.Search extends app.View
@shortcuts:
typing: 'autoFocus'
- escape: 'reset'
@routes:
root: 'onRoot'
@@ -40,7 +39,7 @@ class app.views.Search extends app.View
@focus() unless $.isTouchScreen()
return
- reset: =>
+ reset: ->
@el.reset()
@onInput()
@autoFocus()
@@ -37,7 +37,9 @@ class app.views.Sidebar extends app.View
showDocList: (reset) =>
@show @docList
- @docList.reset() if reset is true
+ if reset is true
+ @docList.reset()
+ @search.reset()
showDocPicker: =>