mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
convert infiltration to use key instead of keyCode
This commit is contained in:
@@ -38,10 +38,10 @@ function generateLeftSide(difficulty: Difficulty): string {
|
||||
}
|
||||
|
||||
function getChar(event: KeyboardEvent): string {
|
||||
if (event.keyCode == 48 && event.shiftKey) return ")";
|
||||
if (event.keyCode == 221 && !event.shiftKey) return "]";
|
||||
if (event.keyCode == 221 && event.shiftKey) return "}";
|
||||
if (event.keyCode == 190 && event.shiftKey) return ">";
|
||||
if (event.key === ")") return ")";
|
||||
if (event.key === "]") return "]";
|
||||
if (event.key === "}") return "}";
|
||||
if (event.key === ">") return ">";
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user