shortcuts
Adds custom keyboard shortcuts as directives using [yields/k]
var ripple = ;var keys = ; var View =
Install
component install ripplejs/shortcuts
Usage
keys(name, combo)
Add a new event called name
that will add a directive called on-NAME
when the keys in combo
are pressed. See [yields/k] for more information.
keys(name)
Same as above, but defaults the keys to be the name. So instead of doing:
To create an on-enter
directive, just do: