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);
|
||||
return () => document.removeEventListener('keypress', handleKeyPress);
|
||||
window.addEventListener('keydown', handleKeyPress);
|
||||
return () => window.removeEventListener('keydown', handleKeyPress);
|
||||
}, [pattern, code]);
|
||||
|
||||
useWebMidi({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue