()
| 33 | * Call this early to avoid delay on first use. |
| 34 | */ |
| 35 | export 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). |
no test coverage detected