github / hotkey

Trigger an action on an element with a keyboard shortcut.
https://github.github.com/hotkey/
MIT License
3.22k stars 97 forks source link

added support for triggering click events on any element with role="b… #22

Closed vlamitin closed 5 years ago

vlamitin commented 5 years ago

<div role="button" ...> is a common way of marking elements's purpose as button for reasons of accessibility (see this discussion)

It's commonly used (see vim-vixen)

And we see some frameworks, that use div for their clickable elements (like material-ui)