1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-07-06 21:15:21 +00:00

新規投稿 Cmd + n / Preview Cmd + P 追加

This commit is contained in:
Rokt33r
2015-11-30 03:44:58 +09:00
parent 2bbb5ef74e
commit 04036e5c87
3 changed files with 17 additions and 6 deletions
+3 -1
View File
@@ -411,7 +411,9 @@ export default class ArticleDetail extends React.Component {
}
handleTogglePreviewButtonClick (e) {
this.setState({previewMode: !this.state.previewMode})
if (this.state.article.mode === 'markdown') {
this.setState({previewMode: !this.state.previewMode})
}
}
handleTitleKeyDown (e) {