MCPcopy
hub / github.com/github/hotkey / sortModifiers

Function sortModifiers

src/hotkey.ts:106–111  ·  view source on GitHub ↗
(hotkey: string)

Source from the content-addressed store, hash-verified

104}
105
106function sortModifiers(hotkey: string): string {
107 return hotkey
108 .split('+')
109 .sort((a, b) => (orderedModifiers[a] ?? Infinity) - (orderedModifiers[b] ?? Infinity))
110 .join('+')
111}

Callers 1

normalizeHotkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected