diff --git a/src/Infiltration/ui/BackwardGame.tsx b/src/Infiltration/ui/BackwardGame.tsx index f02e62abe..752b8ed6d 100644 --- a/src/Infiltration/ui/BackwardGame.tsx +++ b/src/Infiltration/ui/BackwardGame.tsx @@ -37,9 +37,13 @@ export function BackwardGame(props: IMinigameProps): React.ReactElement { const [guess, setGuess] = useState(""); const hasAugment = Player.hasAugmentation(AugmentationNames.ChaosOfDionysus, true); + function ignorableKeyboardEvent(event: KeyboardEvent): boolean { + return event.key === KEY.BACKSPACE || (event.shiftKey && event.key === "Shift"); + } + function press(this: Document, event: KeyboardEvent): void { event.preventDefault(); - if (event.key === KEY.BACKSPACE) return; + if (ignorableKeyboardEvent(event)) return; const nextGuess = guess + event.key.toUpperCase(); if (!answer.startsWith(nextGuess)) props.onFailure(); else if (answer === nextGuess) props.onSuccess();