npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

arrowkeys

0.2.1 • Public • Published

arrowkeys v0.2.1

Events for arrow keys (→←↑↓). Depends on jquery.

Usage

Load script:

<script src="path/to/jquery.js"></script>
<script src="path/to/arrowkeys.js"></script>

To bind arrowkey events:

$(document).arrowkeys();

Handle each key event:

$(document)
    .on('upkey', function () {})
    .on('downkey', function () {})
    .on('leftkey', function () {})
    .on('rightkey', function () {});

To unbind the events:

$(document).arrowkeysUnbind();

License

MIT

install

npm i arrowkeys

Downloadsweekly downloads

3

version

0.2.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability