fix firefox keypress
This commit is contained in:
parent
b3c853ee26
commit
d417d5b314
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ function App() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
document.addEventListener('keypress', handleKeyPress);
|
window.addEventListener('keydown', handleKeyPress);
|
||||||
return () => document.removeEventListener('keypress', handleKeyPress);
|
return () => window.removeEventListener('keydown', handleKeyPress);
|
||||||
}, [pattern, code]);
|
}, [pattern, code]);
|
||||||
|
|
||||||
useWebMidi({
|
useWebMidi({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue