mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
fix shortcuts
This commit is contained in:
@@ -324,8 +324,8 @@ export function SidebarRoot(props: IProps): React.ReactElement {
|
||||
// }
|
||||
}
|
||||
|
||||
document.addEventListener("keypress", handleShortcuts);
|
||||
return () => document.removeEventListener("keypress", handleShortcuts);
|
||||
document.addEventListener("keydown", handleShortcuts);
|
||||
return () => document.removeEventListener("keydown", handleShortcuts);
|
||||
}, []);
|
||||
|
||||
const classes = useStyles();
|
||||
|
||||
Reference in New Issue
Block a user