Closed robrez closed 7 years ago
@robrez I would add the keys
property jsdoc describing what's the format and expand the "Example" section of the "keys
attribute" paragraph with something like:
Each key supports the following format:
KEY[+MODIFIER][:TRIGGERING_EVENT]
e.g.keys = "space shift+tab enter:keyup alt+ctrl+canc:keypress"
WDYT? Feel free to open a PR if you fee like it :)
That's a good idea. Will try to submit a pr this weekend
Ooos! Accidentally clicked close instead of comment
In
iron-a11y-keys-behavior
there is some documentation demonstrating how to bind to specific key* events..For me, it took a bit of reading the code to determine that the same syntax can be used in the
keys
attr..Is there any opposition to adding an example like the above to docs for
iron-a11y-keys
?