Skip to content

Commit dd025b5

Browse files
Copilotiansan5653
andcommitted
Fix prettier formatting in sortModifiers function
Co-authored-by: iansan5653 <2294248+iansan5653@users.noreply.github.com>
1 parent 774d132 commit dd025b5

2 files changed

Lines changed: 2 additions & 41 deletions

File tree

package-lock.json

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/hotkey.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ const orderedModifiers: Partial<Record<string, number>> = {
104104
}
105105

106106
function sortModifiers(hotkey: string): string {
107-
return hotkey.split('+')
107+
return hotkey
108+
.split('+')
108109
.sort((a, b) => (orderedModifiers[a] ?? Infinity) - (orderedModifiers[b] ?? Infinity))
109110
.join('+')
110111
}

0 commit comments

Comments
 (0)