diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1f4e2c8..7baeefc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -9,17 +9,18 @@ randomizeTonic, randomizeProgression, setTonic, - previousProgression, - nextProgression, trySetProgressionFromURL } from './progressionStore'; import { relativeChordToString } from '$lib/music/relativeChord'; - import Chevron from './Chevron.svelte'; - const onKeyDown = (e: KeyboardEvent) => { + const onKeyUp = (e: KeyboardEvent) => { if (e.code == 'Space') { randomizeApp(); e.preventDefault(); + } else if (e.code == 'KeyP') { + randomizeProgression(); + } else if (e.code == 'KeyT') { + randomizeTonic(); } }; @@ -67,21 +68,7 @@