Преглед изворни кода

Improve escape key behavior in single doc mode

Thibaut Courouble пре 8 година
родитељ
комит
57a995d2b2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      assets/javascripts/views/sidebar/doc_list.coffee

+ 1 - 1
assets/javascripts/views/sidebar/doc_list.coffee

@@ -84,7 +84,7 @@ class app.views.DocList extends app.View
     @listSelect.deselect()
     @listFocus?.blur()
     @listFold.reset()
-    @revealCurrent() if options.revealCurrent
+    @revealCurrent() if options.revealCurrent || app.isSingleDoc()
     return
 
   onOpen: (event) =>