mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-09 19:42:48 +00:00
fix: chord maps are ordered incorrectly with new chords, fixes #24
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
if (!editing) return
|
if (!editing) return
|
||||||
editing = false
|
editing = false
|
||||||
if (pressedKeys.size < 2) return
|
if (pressedKeys.size < 2) return
|
||||||
if (!chord) return dispatch("submit", [...pressedKeys])
|
if (!chord) return dispatch("submit", [...pressedKeys].sort())
|
||||||
changes.update(changes => {
|
changes.update(changes => {
|
||||||
changes.push({
|
changes.push({
|
||||||
type: ChangeType.Chord,
|
type: ChangeType.Chord,
|
||||||
|
|||||||
Reference in New Issue
Block a user