mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-02 13:55:17 +08:00
parent
8375d341ea
commit
d42af4affc
@ -29,17 +29,16 @@ export class Shortcuts extends Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.handleShortcutPress(event);
|
|
||||||
});
|
|
||||||
|
|
||||||
window.addEventListener('keydown', event => {
|
|
||||||
if (event.key === '?') {
|
if (event.key === '?') {
|
||||||
if (this.hintsShowing) {
|
if (this.hintsShowing) {
|
||||||
this.hideHints();
|
this.hideHints();
|
||||||
} else {
|
} else {
|
||||||
this.showHints();
|
this.showHints();
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.handleShortcutPress(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user