MCPcopy Create free account
hub / github.com/TanStack/hotkeys / isModifierKey

Function isModifierKey

packages/hotkeys/src/parse.ts:242–246  ·  view source on GitHub ↗
(
  key: Key | (string & {}),
)

Source from the content-addressed store, hash-verified

240 * @returns True if the string is a recognized modifier
241 */
242export function isModifierKey(
243 key: Key | (string & {}),
244): key is keyof typeof MODIFIER_ALIASES {
245 return key in MODIFIER_ALIASES || key.toLowerCase() in MODIFIER_ALIASES
246}
247
248/**
249 * Parses a KeyboardEvent into a ParsedHotkey object.

Callers 5

formatForDisplayFunction · 0.90
hotkeyChordFromKeydownFunction · 0.90
#processTargetEventMethod · 0.90
parse.test.tsFile · 0.90
hasNonModifierKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…