mirror of
https://github.com/BigMarc/grammargem.git
synced 2026-10-13 17:01:55 +02:00
AXUIElementCreateSystemWide() returns kAXErrorCannotComplete (-25204) for a background/menu-bar app on recent macOS, so the focused-element read returned nil and GrammaGem recognised no text or text areas in any app. Add AX.focusedElement(), which falls back to the frontmost app's PID-based AX element (reliable from an accessory process), and route TextCapture's selected-text and focused-field reads through it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>