In order to keep our pages accessible to non-mouse users, we must use non-mouse events like
keydown in addition to mouse events like
click. I created the new Event pairs page and related tests to study this problem.
My conclusions are:
Unfortunately we cannot create strict guidelines for pairing one mouse event with one non-mouse event.
That said, these are the results of my test:
mouseover: pair with
mouseout: pair with
click: pairing not necessary
dblclick: don't know
keydownis the least bad option
keyupis the least bad option
mousemove: impossible to emulate without a mouse
If a page must be perfectly accessible for non-mouse users, we are severely limited in our choice of elements to apply event handlers to. In practice we go back to the Netscape 3 era, where event handlers were only possible on links and form fields.
I’m around at the following conferences:
Comments are closed.