mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Add delete post shortcut to content screen
Proposal :: No issue - cmd/ctrl+backspace deletes a post on the content screen
This commit is contained in:
parent
411e8dc44f
commit
a3bb8cb588
@ -55,11 +55,15 @@ var PostsPostRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, load
|
||||
},
|
||||
|
||||
shortcuts: {
|
||||
'enter': 'openEditor'
|
||||
'enter': 'openEditor',
|
||||
'command+backspace, ctrl+backspace': 'deletePost'
|
||||
},
|
||||
actions: {
|
||||
openEditor: function () {
|
||||
this.transitionTo('editor.edit', this.get('controller.model'));
|
||||
},
|
||||
deletePost: function () {
|
||||
this.send('openModal', 'delete-post', this.get('controller.model'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user