diff --git a/src/routes/bootcamp/+page.svelte b/src/routes/bootcamp/+page.svelte new file mode 100644 index 00000000..e69de29b diff --git a/src/routes/config/chords/ChordActionEdit.svelte b/src/routes/config/chords/ChordActionEdit.svelte index 9019cf07..9319d601 100644 --- a/src/routes/config/chords/ChordActionEdit.svelte +++ b/src/routes/config/chords/ChordActionEdit.svelte @@ -29,12 +29,16 @@ if (!editing) return editing = false if (pressedKeys.size < 2) return - if (!chord) return dispatch("submit", [...pressedKeys].sort()) + if (!chord) + return dispatch( + "submit", + [...pressedKeys].sort((a, b) => a - b), + ) changes.update(changes => { changes.push({ type: ChangeType.Chord, id: chord!.id, - actions: [...pressedKeys].sort(), + actions: [...pressedKeys].sort((a, b) => a - b), phrase: chord!.phrase, }) return changes @@ -54,7 +58,10 @@ {:else if !editing && !chord} {$LL.configure.chords.NEW_CHORD()} {/if} - + a - b) : chord?.actions ?? []} + /> diff --git a/src/routes/vocabulary/+page.svelte b/src/routes/vocabulary/+page.svelte new file mode 100644 index 00000000..e69de29b