MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isModifierPressed

Function isModifierPressed

source code/utils/modifiers.ts:29–38  ·  view source on GitHub ↗
(modifier: ModifierKey)

Source from the content-addressed store, hash-verified

27 * Check if a specific modifier key is currently pressed (synchronous).
28 */
29export function isModifierPressed(modifier: ModifierKey): boolean {
30 if (process.platform !== 'darwin') {
31 return false
32 }
33 // Dynamic import to avoid loading native module at top level
34 const { isModifierPressed: nativeIsModifierPressed } =
35 // eslint-disable-next-line @typescript-eslint/no-require-imports
36 require('modifiers-napi') as { isModifierPressed: (m: string) => boolean }
37 return nativeIsModifierPressed(modifier)
38}

Callers 1

handleEnterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected