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