fix getNodeStats error

This commit is contained in:
Olivier Gagnon
2021-09-25 13:03:09 -04:00
parent 7fb2b8b590
commit f7aa393a8f
12 changed files with 165 additions and 134 deletions
+1
View File
@@ -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);
}