(parts: string[])
| 1230 | } |
| 1231 | |
| 1232 | function normalizeModifiers(parts: string[]): string[] { |
| 1233 | const order = ["Ctrl", "Alt", "Shift", "Mod", "Meta"]; |
| 1234 | const unique = [...new Set(parts)]; |
| 1235 | return unique.sort((a, b) => order.indexOf(a) - order.indexOf(b)); |
| 1236 | } |
| 1237 | |
| 1238 | export function normalizeShortcutBinding(input: string): string | null { |
| 1239 | const mac = isMacPlatform(); |
no outgoing calls
no test coverage detected