This commit is contained in:
Felix Roos 2022-03-24 23:57:32 +01:00
parent b1cde584bf
commit a19d789145
7 changed files with 70 additions and 13 deletions

4
docs/dist/App.js vendored
View file

@ -45,8 +45,8 @@ function App() {
}
}
};
document.addEventListener("keypress", handleKeyPress);
return () => document.removeEventListener("keypress", handleKeyPress);
window.addEventListener("keydown", handleKeyPress);
return () => window.removeEventListener("keydown", handleKeyPress);
}, [pattern, code]);
useWebMidi({
ready: useCallback(({outputs}) => {