mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Merge pull request #4048 from novaugust/delete-post-shortcut
[Feature request] Add delete post shortcut to content screen
This commit is contained in:
commit
439e56028d
1 changed files with 5 additions and 1 deletions
|
@ -55,11 +55,15 @@ var PostsPostRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, load
|
||||||
},
|
},
|
||||||
|
|
||||||
shortcuts: {
|
shortcuts: {
|
||||||
'enter': 'openEditor'
|
'enter': 'openEditor',
|
||||||
|
'command+backspace, ctrl+backspace': 'deletePost'
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
openEditor: function () {
|
openEditor: function () {
|
||||||
this.transitionTo('editor.edit', this.get('controller.model'));
|
this.transitionTo('editor.edit', this.get('controller.model'));
|
||||||
|
},
|
||||||
|
deletePost: function () {
|
||||||
|
this.send('openModal', 'delete-post', this.get('controller.model'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue