1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-24 07:42:07 +03:00

Shortcuts: Prevented help shown when in inputs

For #4606
This commit is contained in:
Dan Brown
2023-10-23 11:04:09 +01:00
parent 8375d341ea
commit d42af4affc

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);
});
}