Whether a dialog gives focus back to the button that opened it is the kind of thing a reviewer checks once, by hand, and nobody checks again. It is also exactly the kind of thing a refactor breaks silently.
This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.
Run the checked-in example
node bin/keyboard-path-checker.mjs --root examples/restores-focusRead the result
A dialog whose open/close path restores focus to the control that opened it, checked two ways: Escape, and the Cancel button. Exit 0.
Scope
These are behaviours, not disclaimers. Each one is enforced by what the tool does, and the rule that enforces it is named.