Adds custom keyboard shortcuts as directives using [yields/k]
var ripple = require('ripple'); var keys = require('shortcuts'); var View = ripple('<input on-send="{{this.submit}}" on-cancel="{{this.cancel}}" />') .use(keys('send', 'shift + enter')) .use(keys('cancel', 'escape'))
component install ripplejs/shortcuts
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.
Same as above, but defaults the keys to be the name. So instead of doing:
To create an on-enter
directive, just do:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4