mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: add shortcut for deleting posts
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user