mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 22:07:06 +02:00
convert infiltration to use key instead of keyCode
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user