input-capture: close lane (lead review); brief: input-inject

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.1 committed 2026-09-16 02:38:11 -07:00
1 parent add0fa4bbc
commit 3c51e95969
3 files changed
+138 -2

No files matched your search

+18
View File
@@ -607,3 +607,21 @@ findings need an actual code or prose change, so none were applied here.
Verdict: REWORK
## Review
- 2026-09-16 (lead): inspected per `docs/loop.md` §5 after one rework
round. Gates green run by me; nine files in the brief's list plus TODO
§4, protocol §10.4 and this README. Read the tap callback in full:
injected tag passes through first, tap-loss re-enables and routes
local before anything else, hotkeys matched on press only, escape
flips routing inside the callback, unmapped keys stay local and are
counted, `swallowKeys`/`swallowMouse` decide the return. QA
spot-checked 30+ VK values and the encodings. Verdict: **merge**.
Carry into input-inject: tag every posted event via the source's
`userData`, including `releaseAll()` key-ups; perform the lock
hotkeys by chord; `isExtended(vk:keycode:)` exists because keypad
Enter shares `VK_RETURN`. Carry into app-shell: the open requests in
this README (`EventTap.now()` timestamps, ownership of the swallow
flags, `releaseAll` + `Cursor.recouple` after `.tapLost`/`.overflow`/
`.escapedToLocal`, `Screens.startObserving()` on the main thread).
Unverified until CP1: horizontal wheel sign, `kVK_Help→VK_INSERT`,
`KeypadClear→VK_NUMLOCK` (protocol §10.4 note 10).