0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-04-16 09:41:05 +00:00

Shortcuts: Prevented help shown when in inputs

For 
This commit is contained in:
Dan Brown 2023-10-23 11:04:09 +01:00
parent 8375d341ea
commit d42af4affc
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -29,17 +29,16 @@ export class Shortcuts extends Component {
return;
}
this.handleShortcutPress(event);
});
window.addEventListener('keydown', event => {
if (event.key === '?') {
if (this.hintsShowing) {
this.hideHints();
} else {
this.showHints();
}
return;
}
this.handleShortcutPress(event);
});
}