Fix issue when hitting left-arrow keyboard shortcut on a disabled and unversioned doc

This commit is contained in:
Thibaut Courouble 2017-09-09 11:37:26 -04:00
parent 5ce239d211
commit e212f62e89

View file

@ -102,7 +102,8 @@ class app.views.ListFocus extends app.View
onLeft: =>
cursor = @getCursor()
if cursor and not cursor.classList.contains(app.views.ListFold.activeClass) and cursor.parentNode isnt @el
@focusOnNextFrame cursor.parentNode.previousSibling
prev = cursor.parentNode.previousSibling
@focusOnNextFrame cursor.parentNode.previousSibling if prev and prev.classList.contains(app.views.ListFold.targetClass)
return
onEnter: =>