mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
fix shortcuts
This commit is contained in:
parent
11ba8c91be
commit
4460bf1613
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -324,8 +324,8 @@ export function SidebarRoot(props: IProps): React.ReactElement {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("keypress", handleShortcuts);
|
document.addEventListener("keydown", handleShortcuts);
|
||||||
return () => document.removeEventListener("keypress", handleShortcuts);
|
return () => document.removeEventListener("keydown", handleShortcuts);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
Loading…
Reference in New Issue
Block a user