mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05: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
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