fix: chord maps are ordered incorrectly with new chords, fixes #24

This commit is contained in:
2023-11-18 01:53:49 +01:00
parent e2f9f87b13
commit 2fd2dad6f7

View File

@@ -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,