All work

Interaction Inspector

Inspect keyboard focus and DOM events together

Context
Team project
Scope
Extension planning, event recording, focus inspection, privacy boundaries, and documentation
Stack
TypeScript, React, SCSS, Vite, Chrome Extensions, Playwright

See how interactions unfold on the page

Mouse and keyboard interaction can produce different focus and event sequences. Interaction Inspector is an Oddmash Chrome extension for selecting an element and inspecting its focus state alongside recorded events.

Interaction Inspector showing button focus and DOM events in the Chromium demo
Interaction Inspector showing button focus and DOM events in the Chromium demo View original

Selection, recording, and privacy boundaries

The picker highlights elements and reports focus, focus-visible, tabindex category, and selected ARIA states. A timeline retains the latest 200 focusin, focusout, click, and keydown events and can be filtered by type or selected element.

The extension does not record key values, input values, or page text. It excludes password-field events and keydowns from editable controls. It injects into the active tab after a toolbar click and keeps the session in page memory.

Adopt shared UI components

The panel buttons and timeline filters use shared Oddmash UI components, with the palette mapped to semantic tokens. The closed shadow root, extension permissions, and event collection behavior remain in place. The extension smoke test covers keyboard use.

Verification and current scope

The repository includes unit tests and Playwright checks that load the extension in Chromium. Its README provides a captured Chromium demo and local setup instructions. Inspection covers the top-level document; events inside iframes and closed shadow roots are outside its scope.

Resources and links

DOM events
Inspect focus, click, and keydown events over time
Minimal collection
Keep the session in page memory without recording input values or keys