MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeModifiers

Function normalizeModifiers

packages/app-core/src/lib/keymaps.ts:1232–1236  ·  view source on GitHub ↗
(parts: string[])

Source from the content-addressed store, hash-verified

1230}
1231
1232function 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
1238export function normalizeShortcutBinding(input: string): string | null {
1239 const mac = isMacPlatform();

Callers 2

normalizeShortcutBindingFunction · 0.85
normalizeSequenceTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected