Why keyboard-navigation Is Harder Than It Looks — Tooling article on keyboard-navigation

Why keyboard-navigation Is Harder Than It Looks

The trade-offs behind a technique that appears simple in isolation. Includes the benchmark we used to settle the argument.

We spent a month measuring before changing anything. The surprising result was that the bottleneck was not keyboard-navigation at all — it was how the data reached the code that used it. Once we moved the work, the numbers fell by an order of magnitude without a single micro-optimisation.

The thing nobody tells you about keyboard-navigation is that the specification is short and the implementation history is not. Every behaviour you rely on was added for a reason that no longer applies to your code.

Start with the smallest thing that could possibly work. Not because it is the final answer, but because it gives you something to measure against, and measuring is how you find out whether the clever version is worth it.

Accessibility regressions are invisible in code review and obvious to users. That asymmetry is why automated checks should run in CI, not in a quarterly audit.