• Success Criterion 2.1.1
  • Conformance level A
  • W3C reference F54

Feature That Only Responds to Mouse Events, Not the Keyboard

2.1.1 — Keyboard

Scenario

Setting

A bank's mobile money-transfer screen

What’s wrong

A feature only responds to mouse-specific events (mousedown, hover, gestures) — keyboard users cannot trigger it at all.

Example

<div onclick="submitForm()">Submit</div>

Why it matters

Blind users, people with motor disabilities, and anyone operating the interface without a pointer.

How to test

Unplug the mouse and Tab to the feature: if it only responds to mousedown/touchstart/gesture events with no keydown/keyup handler, nothing happens and it fails.

How to fix

Add keyboard handlers (click on links/buttons, or keydown for Enter/Space) alongside pointer events.

<button onclick="submitForm()">Submit</button>

A native button is focusable and triggers on Enter/Space automatically; a div needs all of that added by hand.

Outcome

On a bank's mobile money-transfer screen, this barrier is gone for blind users, people with motor disabilities — they get the same result as anyone else here.

Who is affected

Blind users, people with motor disabilities, and anyone operating the interface without a pointer.

Learn more