client/posts: add shortcut for deleting posts

This commit is contained in:
Robin Appelman
2017-09-21 19:42:56 +02:00
committed by rr-
parent 6d78c5e55d
commit 253e28c1b5
2 changed files with 10 additions and 0 deletions

View File

@ -77,6 +77,11 @@ class PostMainView {
router.show(ctx.getPostUrl(ctx.nextPostId, ctx.parameters));
}
});
keyboard.bind('del', (e) => {
if (ctx.editMode) {
this.sidebarControl._evtDeleteClick(e);
}
});
}
_installSidebar(ctx) {