From 2fd2dad6f76144e3079cf994e092a5be3fd598e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Sat, 18 Nov 2023 01:53:49 +0100 Subject: [PATCH] fix: chord maps are ordered incorrectly with new chords, fixes #24 --- src/routes/config/chords/ChordActionEdit.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/config/chords/ChordActionEdit.svelte b/src/routes/config/chords/ChordActionEdit.svelte index 4be8e509..9019cf07 100644 --- a/src/routes/config/chords/ChordActionEdit.svelte +++ b/src/routes/config/chords/ChordActionEdit.svelte @@ -29,7 +29,7 @@ if (!editing) return editing = false if (pressedKeys.size < 2) return - if (!chord) return dispatch("submit", [...pressedKeys]) + if (!chord) return dispatch("submit", [...pressedKeys].sort()) changes.update(changes => { changes.push({ type: ChangeType.Chord,