mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	@@ -57,6 +57,12 @@ export class KeyboardNavigationHandler {
 | 
				
			|||||||
     * @param {KeyboardEvent} event
 | 
					     * @param {KeyboardEvent} event
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    #keydownHandler(event) {
 | 
					    #keydownHandler(event) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Ignore certain key events in inputs to allow text editing.
 | 
				
			||||||
 | 
					        if (event.target.matches('input') && (event.key === 'ArrowRight' || event.key === 'ArrowLeft')) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {
 | 
					        if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {
 | 
				
			||||||
            this.focusNext();
 | 
					            this.focusNext();
 | 
				
			||||||
            event.preventDefault();
 | 
					            event.preventDefault();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user