MCPcopy Create free account
hub / github.com/freecodexyz/free-code / isModifierPressed

Function isModifierPressed

src/utils/modifiers.ts:46–52  ·  view source on GitHub ↗
(modifier: ModifierKey)

Source from the content-addressed store, hash-verified

44 * Check if a specific modifier key is currently pressed (synchronous).
45 */
46export function isModifierPressed(modifier: ModifierKey): boolean {
47 try {
48 return loadNativeModifiersModule()?.isModifierPressed?.(modifier) ?? false
49 } catch {
50 return false
51 }
52}

Callers 1

handleEnterFunction · 0.85

Calls 1

Tested by

no test coverage detected