From 1675a2811cb47a0a60211a197fb9fa270946dc58 Mon Sep 17 00:00:00 2001 From: Dane Horn Date: Mon, 9 May 2022 09:55:41 +0200 Subject: [PATCH] ignore ctrl and alt keypresses --- src/Infiltration/ui/BackwardGame.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Infiltration/ui/BackwardGame.tsx b/src/Infiltration/ui/BackwardGame.tsx index 752b8ed6d..d3ef51488 100644 --- a/src/Infiltration/ui/BackwardGame.tsx +++ b/src/Infiltration/ui/BackwardGame.tsx @@ -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 {