Show doc index on escape in single doc mode instead of reloading the page

pull/90/head
Thibaut 11 years ago
parent bb1642e0a8
commit dccc8954a8

@ -24,7 +24,7 @@ class app.views.Document extends app.View
app.router.show '/help#shortcuts'
onEscape: ->
if app.isSingleDoc() then window.location = '/' else app.router.show '/'
app.router.show if app.isSingleDoc() then app.doc.fullPath() else '/'
onBack: ->
history.back()

Loading…
Cancel
Save