Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Implement dom/a11yclick extension event #10

Closed
eheasley opened this issue May 22, 2015 · 2 comments
Closed

Implement dom/a11yclick extension event #10

eheasley opened this issue May 22, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@eheasley
Copy link

This would fire on mouse click, tap, or Enter / Space keys.

Investigation needs to be performed as to whether this actually needs to exist, or whether browsers already support it well enough inherently through the click event (though there may at least be the mobile tap delay to consider).

It may also be worth looking at Mayhem's activate event (in ui/dom/actions) for inspiration, though Mayhem uses its own event system so it might not be entirely applicable.

dom Proposal Reference

@kfranqueiro
Copy link
Member

I'll be logging some notes related to the existing dijit/a11yclick in this comment as I find them.

  • a11yclick (or at least its original incarnation) is mentioned here in the Reference Guide
    • Modern browsers already trigger click on space/enter keypress on elements with activation behavior
    • Modern browsers do not trigger click on just any element with tabindex set; it has to be an element with activation behavior
  • https://bugs.dojotoolkit.org/ticket/3461 appears to be the original ticket for implementing this feature (TIL it was once called klick, sheesh).
    • It appears that it was used on elements without activation behaviors, corroborating the above point.

I would think we should be able to get by without needing this simulated event at all, if all cases where it would be necessary can be rendered as elements with activation triggers/behaviors (e.g. a, button... unfortunately I haven't found an exhaustive list anywhere).

@kfranqueiro
Copy link
Member

Rather than leave this hanging on hold for potentially a long time, I'm going to go ahead and close this, but we can easily search for a11yclick in issues again to resurrect it if need be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants