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

Function isModifierKey

packages/app-core/src/lib/keymaps.ts:1104–1108  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1102}
1103
1104function isModifierKey(key: string): boolean {
1105 return (
1106 key === "Shift" || key === "Control" || key === "Alt" || key === "Meta"
1107 );
1108}
1109
1110function physicalKeyFromCode(code: string): string | null {
1111 if (/^Key[A-Z]$/.test(code)) return code.slice(3);

Callers 3

resolveKeyFromEventFunction · 0.85
normalizeKeyNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected