Merge pull request #2668 from MartinFournier/fix/locked-shortcuts

Shortcuts now check to see if feature is unlocked
This commit is contained in:
hydroflame 2022-01-17 15:53:18 -05:00 committed by GitHub
commit 5344548740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -321,10 +321,10 @@ export function SidebarRoot(props: IProps): React.ReactElement {
} else if (event.keyCode === KEY.U && event.altKey) { } else if (event.keyCode === KEY.U && event.altKey) {
event.preventDefault(); event.preventDefault();
clickTutorial(); clickTutorial();
} else if (event.keyCode === KEY.B && event.altKey) { } else if (event.keyCode === KEY.B && event.altKey && props.player.bladeburner) {
event.preventDefault(); event.preventDefault();
clickBladeburner(); clickBladeburner();
} else if (event.keyCode === KEY.G && event.altKey) { } else if (event.keyCode === KEY.G && event.altKey && props.player.gang) {
event.preventDefault(); event.preventDefault();
clickGang(); clickGang();
} }