diff options
| -rw-r--r-- | client/html/help_keyboard.tpl | 5 | ||||
| -rw-r--r-- | client/js/views/post_main_view.js | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/client/html/help_keyboard.tpl b/client/html/help_keyboard.tpl index 5b12324..76bfe2a 100644 --- a/client/html/help_keyboard.tpl +++ b/client/html/help_keyboard.tpl @@ -33,6 +33,11 @@ shortcuts:</p> <td><kbd>P</kbd></td> <td>Focus first post in post list</td> </tr> + + <tr> + <td><kbd>Delete</kbd></td> + <td>Delete post (while in edit mode)</td> + </tr> </tbody> </table> diff --git a/client/js/views/post_main_view.js b/client/js/views/post_main_view.js index d303c21..3aa6c4f 100644 --- a/client/js/views/post_main_view.js +++ b/client/js/views/post_main_view.js @@ -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) { |