Show shortcuts dialog when pressing ? (#1224)

This commit is contained in:
Lipis 2020-04-05 15:58:00 +03:00 committed by GitHub
parent 0eb2f7092b
commit 9a0889c698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 317 additions and 5 deletions

View file

@ -1006,6 +1006,12 @@ export class App extends React.Component<any, AppState> {
return;
}
if (event.key === KEYS.QUESTION_MARK) {
this.setState({
showShortcutsDialog: true,
});
}
if (event.code === "KeyC" && event.altKey && event.shiftKey) {
this.copyToClipboardAsPng();
event.preventDefault();