From b68e5f30225595abbff4b787d8348c9ea4700d1f Mon Sep 17 00:00:00 2001 From: julian laplace Date: Tue, 15 Jul 2025 00:24:24 +0200 Subject: add ability to set root note --- client/lib/sampler.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/lib') 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]; -- cgit v1.2.3-70-g09d2