History

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

Thibaut Courouble committed 9 years ago

Commit e212f621 parent 5ce239d1 file · +2 −1Browse files

Unified · Split

assets/javascripts/views/list/list_focus.coffee+2−1
@@ -102,7 +102,8 @@ class app.views.ListFocus extends app.View · 101 unmodified lines
102 onLeft: =>102 onLeft: =>
103 cursor = @getCursor()103 cursor = @getCursor()
104 if cursor and not cursor.classList.contains(app.views.ListFold.activeClass) and cursor.parentNode isnt @el104 if cursor and not cursor.classList.contains(app.views.ListFold.activeClass) and cursor.parentNode isnt @el
105 @focusOnNextFrame cursor.parentNode.previousSibling105 prev = cursor.parentNode.previousSibling
106 @focusOnNextFrame cursor.parentNode.previousSibling if prev and prev.classList.contains(app.views.ListFold.targetClass)
106 return107 return
107 108
108 onEnter: =>109 onEnter: =>