WICG / inert

Polyfill for the inert attribute and property.
Other
928 stars 81 forks source link

accesskey should not function on inert content #40

Open jnurthen opened 7 years ago

jnurthen commented 7 years ago

If accesskey is specified on content which is inert it should be ignored. Currently if I add an accesskey on the checkbox in the demo pages, then I can check it using the accesskey even if it is inert.

rodneyrehm commented 7 years ago

Setting input elements to disabled prevents the accesskey behavior. If that's not an option things may get a bit tricky. Here's an excerpt of accesskey behavior tests I did ~2 years ago:

Chrome will not focus a link, but execute its default action (navigate to href), while Trident will focus the <a> element and not perform the default action. Trident does not dispatch click events (the default activation of otherwise non-interactive elements), except for <input> elements. Chrome on Windows won't dispatch a click event for <input type="checkbox">