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

Function prewarmModifiers

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

Source from the content-addressed store, hash-verified

33 * Call this early to avoid delay on first use.
34 */
35export function prewarmModifiers(): void {
36 if (prewarmed || process.platform !== 'darwin') {
37 return
38 }
39 prewarmed = true
40 loadNativeModifiersModule()?.prewarm?.()
41}
42
43/**
44 * Check if a specific modifier key is currently pressed (synchronous).

Callers 1

useTextInputFunction · 0.85

Calls 1

Tested by

no test coverage detected