client/posts: add shortcut for deleting posts
This commit is contained in:
		
							parent
							
								
									6d78c5e55d
								
							
						
					
					
						commit
						253e28c1b5
					
				@ -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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user