mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
fix getNodeStats error
This commit is contained in:
@@ -8,6 +8,7 @@ interface IProps {
|
||||
export function KeyHandler(props: IProps): React.ReactElement {
|
||||
useEffect(() => {
|
||||
function press(this: Document, event: KeyboardEvent): void {
|
||||
if (!event.isTrusted) return;
|
||||
const f = props.onKeyDown.bind(this);
|
||||
f(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user