w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.2k stars 333 forks source link

Bug in examples treeview/treeview-2/*: key "space" does not open links #869

Open spectranaut opened 6 years ago

spectranaut commented 6 years ago

Examples:

Replicate:

sh0ji commented 5 years ago

Is this a bug? I haven't been able to test it on Windows, but space does not trigger native links on any browser on Mac.

This seems to be one of the UX differences between links and buttons: buttons trigger on mousedown + mouseup, keydown.enter, and keyup.space (the syntheticclick for actual <button> elements); links trigger on mousedown + mouseup and keydown.enter.