UNPKG

jwerty

Version:

Awesome handling of keyboard events

25 lines 771 B
/* * jwerty - Awesome handling of keyboard events * * jwerty is a JS lib which allows you to bind, fire and assert key combination * strings against elements and events. It normalises the poor std api into * something easy to use and clear. * * This code is licensed under the MIT * For the full license see: http://keithamus.mit-license.org/ * For more information see: http://keithamus.github.com/jwerty * * @author Keith Cirkel ('keithamus') <jwerty@keithcirkel.co.uk> * @license http://keithamus.mit-license.org/ * @copyright Copyright © 2011, Keith Cirkel * */ (function ($, r) { var kk = r('jwerty').jwerty; $.ender({ key: kk.key, keyEvent: kk.event, isKey: kk.is, fireKey: kk.fire }); }(ender, require));