mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 10:41:16 +08:00
parent
69d702c783
commit
2c0a7346b1
|
@ -57,6 +57,12 @@ export class KeyboardNavigationHandler {
|
|||
* @param {KeyboardEvent} 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') {
|
||||
this.focusNext();
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue
Block a user