mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Cmd+Sで保存
debug craetedAt
This commit is contained in:
@@ -47,7 +47,7 @@ class HomePage extends React.Component {
|
||||
if (e.keyCode === 27) {
|
||||
detail.handleCancelButtonClick()
|
||||
}
|
||||
if (e.keyCode === 13 && e.metaKey) {
|
||||
if ((e.keyCode === 13 && e.metaKey) || (e.keyCode === 83 && e.metaKey)) {
|
||||
detail.handleSaveButtonClick()
|
||||
}
|
||||
break
|
||||
|
||||
@@ -182,6 +182,7 @@ export default class ArticleDetail extends React.Component {
|
||||
|
||||
delete newArticle.status
|
||||
newArticle.updatedAt = new Date()
|
||||
if (newArticle.createdAt == null) newArticle.createdAt = new Date()
|
||||
|
||||
dispatch(updateArticle(newArticle))
|
||||
dispatch(switchMode(IDLE_MODE))
|
||||
|
||||
Reference in New Issue
Block a user