MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / prewarmModifiers

Function prewarmModifiers

src/utils/modifiers.ts:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * Call this early to avoid delay on first use.
8 */
9export function prewarmModifiers(): void {
10 if (prewarmed || process.platform !== 'darwin') {
11 return
12 }
13 prewarmed = true
14 void import('modifiers-napi').then(({ prewarm }) => prewarm()).catch(() => {})
15}
16
17/**
18 * Check if a specific modifier key is currently pressed (synchronous).

Callers 1

useTextInputFunction · 0.85

Calls 1

prewarmFunction · 0.85

Tested by

no test coverage detected