mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Add a keyboard shortcut to switch to Options page
This commit is contained in:
parent
6f017bf4f6
commit
9f8c567d4c
@ -272,6 +272,8 @@ export function SidebarRoot(props: IProps): React.ReactElement {
|
||||
// Alt-a - Augmentations
|
||||
// Alt-u - Tutorial
|
||||
// Alt-o - Options
|
||||
// Alt-b - Bladeburner
|
||||
// Alt-g - Gang
|
||||
function handleShortcuts(this: Document, event: KeyboardEvent): any {
|
||||
if (Settings.DisableHotkeys) return;
|
||||
if ((props.player.isWorking && props.player.focus) || props.router.page() === Page.BitVerse) return;
|
||||
@ -315,6 +317,9 @@ export function SidebarRoot(props: IProps): React.ReactElement {
|
||||
} else if (event.code === KEYCODE.U && event.altKey) {
|
||||
event.preventDefault();
|
||||
clickTutorial();
|
||||
} else if (event.code === KEYCODE.O && event.altKey) {
|
||||
event.preventDefault();
|
||||
clickOptions();
|
||||
} else if (event.code === KEYCODE.B && event.altKey && props.player.bladeburner) {
|
||||
event.preventDefault();
|
||||
clickBladeburner();
|
||||
|
Loading…
Reference in New Issue
Block a user