diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index f1a5fbfff..fc0c90fc5 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -117,8 +117,10 @@ class DocumentScene extends React.Component { @keydown('esc') goBack(ev) { - ev.preventDefault(); - this.props.history.goBack(); + if (this.isEditing) { + ev.preventDefault(); + this.props.history.goBack(); + } } @keydown('h')