1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

enhance editor UX

This commit is contained in:
Dick Choi
2016-01-09 23:03:23 +09:00
parent 673503b76f
commit a505227d01
3 changed files with 31 additions and 12 deletions

View File

@@ -21,6 +21,7 @@ export default class ArticleList extends React.Component {
componentDidMount () {
this.refreshTimer = setInterval(() => this.forceUpdate(), 60 * 1000)
ipc.on('list-focus', this.focusHandler)
this.focus()
}
componentWillUnmount () {
@@ -102,6 +103,11 @@ export default class ArticleList extends React.Component {
remote.getCurrentWebContents().send('detail-delete')
}
if (e.keyCode === 84) {
e.preventDefault()
remote.getCurrentWebContents().send('detail-title')
}
if (e.keyCode === 69) {
e.preventDefault()
remote.getCurrentWebContents().send('detail-edit')