convert infiltration to use key instead of keyCode

This commit is contained in:
Olivier Gagnon
2021-10-27 20:52:16 -04:00
parent 6835cbaa26
commit b1328b02ce
9 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export function SlashGame(props: IMinigameProps): React.ReactElement {
function press(this: Document, event: KeyboardEvent): void {
event.preventDefault();
if (event.keyCode !== 32) return;
if (event.key !== " ") return;
if (phase !== 2) {
props.onFailure();
} else {