Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
106
function
sortModifiers(hotkey: string): string {
107
return
hotkey
108
.split(
'+'
)
109
.sort((a, b) => (orderedModifiers[a] ?? Infinity) - (orderedModifiers[b] ?? Infinity))
110
.join(
'+'
)
111
}
Callers
1
normalizeHotkey
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected