ignore ctrl and alt keypresses

This commit is contained in:
Dane Horn 2022-05-09 09:55:41 +02:00
parent 86b29237eb
commit 1675a2811c

@ -38,7 +38,10 @@ export function BackwardGame(props: IMinigameProps): React.ReactElement {
const hasAugment = Player.hasAugmentation(AugmentationNames.ChaosOfDionysus, true);
function ignorableKeyboardEvent(event: KeyboardEvent): boolean {
return event.key === KEY.BACKSPACE || (event.shiftKey && event.key === "Shift");
return event.key === KEY.BACKSPACE
|| (event.shiftKey && event.key === "Shift")
|| event.ctrlKey
|| event.altKey;
}
function press(this: Document, event: KeyboardEvent): void {