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