Repository navigation
XKey v1.2.25 (Build 20260818)
What's New
fix(injection): reduce AX queries into web renderer to stop Gmail/Chrome freeze
Two mechanisms caused intermittent typing freezes in heavy web editors
(Gmail compose in Chrome):
-
FocusedElementInfo.from() eagerly queried AXDOMClassList and
AXDOMIdentifier on every snapshot. These attributes are served by the
browser's web renderer, forcing Chromium to keep web accessibility
enabled for the page — janking heavy pages like Gmail. -
getConfirmedInjectionMethod() did not store its live-detection
fallback result. Since clearMethodCache() runs on every mouse click,
arrow key, and app switch, every subsequent keyDown re-ran a full AX
snapshot on the event-tap thread until an async re-prime, stalling
the tap (and all typing) whenever the focused app was slow to answer.
Changes:
- Store the Priority-2 fallback via setConfirmedInjectionMethod, same
pattern as consumePendingMethodReprobe. - Make domIdentifier/domClasses lazy providers (same pattern as
textValueProvider); snapshot drops to 5 eager AX calls. - signature uses domIdentifierIfLoaded so the hot path never fires the
lazy renderer query. - Gate the DOM-attribute fallback in isChromiumAddressBar and
isFirefoxStyleAddressBar by role == AXTextField: the omnibox/urlbar
are native text fields, web content never is. Eager checks
(identifier, description) now run before the DOM legs, keeping
localized-UI detection working.
Preserved: Notion code block detection, rules with AX patterns,
built-in title-only rules (never fire DOM queries), address bar
detection on localized browser UIs.
Tests: FocusedElementInfoLazyTests (17 cases) covering lazy semantics,
signature behavior, and all address-bar gate branches. Full XKeyTests
suite passes; XKeyIM target builds.
Also: bump version to 1.2.25 (build 20260818), ignore graphify-out/
and .codegraph/ local tooling dirs.