Keyboard behavior for AngularJS Webapps.
(But the directives also respond to touch & mouse events)
- Bring desktop-class keyboard navigation to webapps.
- Add behavior without adding styling or new scopes.
- No additional plugins required. (jQuery is optional)
Then add a
<script> to your
And add the 'keyboard' module as dependancy.
A kb-item in a kb-list can selected using the arrow keys and by clicking on the kb-item.
A kb-item in a kb-select can activated using the arrow keys but is selected (and deselected) by pressing 'space' or 'enter' keys or clicking an the kb-item.
Setting or reading the focus via a service.
Set the autofocus attribute based on an expression.
- Install node.js
- Install gulp:
npm install -g bower gulp
- Install dependencies:
npm installin the repository directory.
gulp buildto build
gulp watchfor building & livereload on every change.