mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-16 09:41:05 +00:00
parent
8375d341ea
commit
d42af4affc
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue