This commit is contained in:
Olivier Gagnon
2021-09-25 01:26:03 -04:00
parent 5c6c472b64
commit b0f20c8c8f
33 changed files with 3609 additions and 1217 deletions
-2
View File
@@ -7,9 +7,7 @@ interface IProps {
export function KeyHandler(props: IProps): React.ReactElement {
useEffect(() => {
console.log("binding");
function press(this: Document, event: KeyboardEvent): void {
console.log("press!");
const f = props.onKeyDown.bind(this);
f(event);
}