Add 'n' shortcut for new doc

Fixed cmd+enter shortcut to publish doc
Fixed keyboard shortcut display on non-mac
Fixed heading alignment
Fixed documents smaller than page should not scroll
This commit is contained in:
Tom Moor
2019-03-09 20:00:45 -08:00
parent f75783c2f1
commit fc7c485ba9
10 changed files with 53 additions and 20 deletions

View File

@@ -86,7 +86,7 @@ export default class Document extends BaseModel {
@computed
get isEmpty(): boolean {
// Check if the document title has been modified and user generated content exists
return this.text.replace(new RegExp(`^#$`), '').trim().length === 0;
return this.text.replace(/^#/, '').trim().length === 0;
}
@computed