From 9b95cd68dcd2619cfe1ae10a720605db2fe4f9f1 Mon Sep 17 00:00:00 2001 From: Ewen Le Bihan Date: Wed, 1 May 2024 22:07:20 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Web:=20Add=20space=20keybinding=20t?= =?UTF-8?q?o=20generate=20a=20new=20white=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/index.html b/web/index.html index e883b68..6b628dd 100644 --- a/web/index.html +++ b/web/index.html @@ -20,6 +20,12 @@ window.pedal_held = false + window.addEventListener("keypress", (e) => { + if (e.key === " ") { + window.render_image(1, "white") + } + }) + console.log("requesting midi access") navigator.requestMIDIAccess().then((midiAccess) => { Array.from(midiAccess.inputs).forEach((input) => {