diff options
Diffstat (limited to 'client/lib/sampler.js')
| -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]; |
