History

Improve escape key behavior in single doc mode

Thibaut Courouble committed 9 years ago

Commit 57a995d1 parent 03403bd1 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/sidebar/doc_list.coffee+1−1
@@ -84,7 +84,7 @@ class app.views.DocList extends app.View · 83 unmodified lines
8484 @listSelect.deselect()
8585 @listFocus?.blur()
8686 @listFold.reset()
87− @revealCurrent() if options.revealCurrent
87+ @revealCurrent() if options.revealCurrent || app.isSingleDoc()
8888 return
8989
9090 onOpen: (event) =>