diff options
| author | julian laplace <julescarbon@gmail.com> | 2025-07-15 00:24:24 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2025-07-15 00:24:24 +0200 |
| commit | b68e5f30225595abbff4b787d8348c9ea4700d1f (patch) | |
| tree | aa35d92a5748478c1c80095596e18d965936f0a9 /client/lib | |
| parent | e3a83bf81c3ceaaa72fb5fbc5b29248a5c9618ac (diff) | |
add ability to set root note
Diffstat (limited to 'client/lib')
| -rw-r--r-- | client/lib/sampler.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/lib/sampler.js b/client/lib/sampler.js index 69da86e..59f8562 100644 --- a/client/lib/sampler.js +++ b/client/lib/sampler.js @@ -98,6 +98,9 @@ export default { load, play, pause, stop }; // for help tuning function keydown(e) { + if (document.activeElement !== document.body) { + return; + } // console.log(e.keyCode) if (e.metaKey && last && current) { const sample = samples[current]; |
