mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
ignore ctrl and alt keypresses
This commit is contained in:
parent
86b29237eb
commit
1675a2811c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user